Web Sockets
WebSocket.connect
<WebSocketConnection> WebSocket.connect(<string> url)local ws = WebSocket.connect("ws://localhost:8080")
ws.OnMessage:Connect(function(message)
print(message)
end)
ws.OnClose:Connect(function()
print("Closed")
end)
ws:Send("Hello, World!")WebSocketConnection
ws = WebSocket.connect(url)Methods
Method
Description
Events
Event
Description
Last updated