Websocket handles
|
|||||||||
| 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 | ||||||||
| |||||||||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.