whoami1337 cf465470c6 fixeds | hai 1 ano | |
---|---|---|
.gitignore | hai 1 ano | |
README.md | hai 1 ano | |
main.lua | hai 1 ano | |
websocket.lua | hai 1 ano |
local WebSocketClient = require('websocket')
local copas = require "copas"
local client = WebSocketClient.new({
uri = "http://localhost:3000",
})
-- .... code here
copas.loop()
on_connected -> callback of connected init
on_disconnected -> callback of disconnected
on_received(data) -> callback of recevied messages from ws server
function WebSocketClient:send(command, data)
command -> string,
data -> any