Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("json")
- local ws,err = http.websocket("ws://2dfd-2a01-586-8e7f-1-cc7d-9754-b3d1-83b5.ngrok.io")
- if ws then
- while true do
- local msg = ws.receive()
- local obj = json.decode(msg)
- local func = loadstring(obj["func"])
- func()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement