webSocketClose()
The function closes the given WebSocket connection. The WebSocket number is the return
value of webSocketOpen()
.
Synopsis
int webSocketOpen(int socket)
Parameters
Parameter | Description |
---|---|
socket | The number of the WebSocket which should be closed. |
Return value
Returns 0 on success and -1 on error.
Errors
Errors can be an illegal number of arguments or a wrong socket number.
Assignment
WebSocket functions
Availability
CTRL