Facebook
From Fiery Tortoise, 4 Years ago, written in Lua.
This paste is a reply to Re: Websocket Computercraft from Sweltering Cat - go back
Embed
local request, http_err = http.post("https://hpax1hrhp9ofbkves8tlum.hooks.webhookrelay.com")
local ws_url = request.readAll();
request.close();
print("WS attempt connection to")
print(ws_url);

local ws, ws_err = http.websocket(ws_url)
if ws then
  ws.send("Hello")
  while true do
          ws.send(commands.exec(ws.receive()))
  end
  ws.close()
end

Replies to Re: Re: Websocket Computercraft rss

Title Name Language When
Re: Re: Re: Websocket Computercraft Thundering Terrapin lua 4 Years ago.