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

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



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

Replies to Websockets rss

Title Name Language When
Re: Websockets Silly Tortoise lua 4 Years ago.