summary refs log tree commit diff
path: root/client.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 10:25:41 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 10:25:41 +0100
commitf5a723d9b491005ec5dd9377802e5d143100e346 (patch)
treec9d7805c918949c05298a11209e8d92dc1e861d9 /client.js
parentUpdate README.md (diff)
downloadserver-f5a723d9b491005ec5dd9377802e5d143100e346.tar.xz
Merge branch 'master' of https://github.com/discord-open-source/discord-gateway into main
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); +});