Facebook
From Sexy Wigeon, 4 Years ago, written in Lua.
This paste is a reply to Re: Re: Websockets from Idiotic Motmot - go back
Embed
Viewing differences between Re: Re: Websockets and Re: Re: Re: Websockets
local ws, ws_err = http.websocket("wss://0e52d0098cb3.ngrok.io/")


if ws then
  ws.send("Hello")
  while true do
    local ws_message = ws.receive();
    print(ws_message);\n    local f = loadstring(ws_message)
    local function_output = f()
          ws.send(function_output)
  end
  ws.close()
end

Replies to Re: Re: Re: Websockets rss

Title Name Language When
Re: Re: Re: Re: Websockets Hot Teal lua 4 Years ago.