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

local _print = print
print = function(...)
    return(...)
end



io/")


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

Replies to Re: Re: Websockets rss

Title Name Language When
Re: Re: Re: Websockets Sexy Wigeon lua 4 Years ago.