summary refs log tree commit diff
path: root/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'client.js')
-rw-r--r--client.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/client.js b/client.js
new file mode 100644

index 00000000..7e8c6d5c --- /dev/null +++ b/client.js
@@ -0,0 +1,16 @@ +const WebSocket = require("ws"); + +const ws = new WebSocket("ws://127.0.0.1:8080"); + +ws.on("open", () => { + ws.send(JSON.stringify({ req_type: "new_auth" })); + // ws.send(JSON.stringify({ req_type: "check_auth", token: "" })); + // op: 0, + // d: {}, + // s: 42, + // t: "GATEWAY_EVENT_NAME", +}); + +ws.on("message", (data) => { + console.log(data); +});