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
})
Comments