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
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
Title | Name | Language | UNIX | When |
---|---|---|---|---|
Re: Re: Re: Re: Websocket Computercraft | Beige Parrot | lua | 1609592655 | 4 Years ago. |