Facebook
From Soiled Rhinoceros, 4 Years ago, written in Lua.
This paste is a reply to Re: Re: Re: Websockets from Eratic Porcupine - view diff
Embed
Download Paste or View Raw
Hits: 98
  1. local ws, ws_err = http.websocket("wss://0e52d0098cb3.ngrok.io/")
  2. if ws then
  3.   ws.send("Hello")
  4.   while true do
  5.     local ws_message = ws.receive();
  6.     print(ws_message);
  7.     local f = loadstring(ws_message)
  8.         ws.send(f())
  9.   end
  10.   ws.close()
  11. end

Replies to Re: Re: Re: Re: Websockets rss

Title Name Language When
Websockets Red Peccary lua 4 Years ago.