local _print = 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)
local function_output = f()
end
ws.close()
end
local ws, ws_err = http.websocket("wss://0e52d0098cb3.ngrok.io/")io/")
local _print = 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)
local function_output = f()
_print("output "..function_output);\nws.send(function_output)
end
ws.close()
end
Title | Name | Language | UNIX | When |
---|---|---|---|---|
Re: Re: Re: Websockets | Sexy Wigeon | lua | 1609596520 | 4 Years ago. |