Websocket handles
Jump to navigation
Jump to search
|
|||||||||
Closes this websocket handle. You should always do this after finishing using a websocket, in order to free up resources. | |||||||||
Syntax | websocket.close() | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | http | ||||||||
|
|
|||||||||||
Wait until a message has been received from this websocket. | |||||||||||
Syntax | websocket.receive() | ||||||||||
Returns | string | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | http | ||||||||||
See also | websocket_message | ||||||||||
|
|
|||||||||
Sends a message to the server using this websocket | |||||||||
Syntax | websocket.send() | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | http | ||||||||
|