Skip to content

WebSocket

Description:

This function demonstrates the usage of the WebSocket API.

Example:

-- Connect to a WebSocket
local ws = WebSocket.connect('wss://example.com')

ws.OnMessage:Connect(function(msg)
    print("Received message:", msg)
end)