Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http_request({
- host = "127.0.0.1",
- port = 8000,
- path = "/control/event/",
- headers = {
- "Origin: http://127.0.0.1:8888",
- "Upgrade: websocket",
- "Connection: Upgrade",
- },
- callback = function(request, response)
- if type(response) == "table" then
- request:send(json.encode({scope = "auth"}))
- return nil
- end
- table.dump(json.decode(response))
- end
- })
Advertisement
Add Comment
Please, Sign In to add comment