WebSocket
Close
<void> Socket:Close(<void>)
Closes the WebSocket connection.
Event
Description
.OnMessage
Activated when a message is receieved over the websocket connection.
.OnClose
Activated when the websocket connection is closed.
Connect
<bool> WebSocket.connect(<string> url)
Connects with
url
and will return the instance representing the connection.
Send
<void> Socket:Send(<string> text)
Sends
text
to the WebSocket connection.
Last updated