Facebook
From Thundering Terrapin, 4 Years ago, written in Lua.
This paste is a reply to Re: Re: Websocket Computercraft from Fiery Tortoise - go back
Embed
local request, http_err = http.post("https://hpax1hrhp9ofbkves8tlum.hooks.webhookrelay.com")
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: Re: Websocket Computercraft rss

Title Name Language When
Re: Re: Re: Re: Websocket Computercraft Beige Parrot lua 4 Years ago.