Facebook
From Eratic Porcupine, 4 Years ago, written in Lua.
This paste is a reply to Re: Re: Websockets from Cobalt Cockroach - go back
Embed
Viewing differences between Re: Re: Websockets and Re: Re: Re: Websockets
local ws, ws_err = http.websocket("wss://5ac8fbd184cd.ngrok.io")
if ws then
  ws.send("Hello")
  while true do
    local ws_message = ws.receive();
    print(ws_message);
          ws.send(commands.exec(ws_message))
send(loadstring(ws_message))
  end
  ws.close()
end

Replies to Re: Re: Re: Websockets rss

Title Name Language When
Re: Re: Re: Re: Websockets Soiled Rhinoceros lua 4 Years ago.