We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f012e5 commit 8a68f02Copy full SHA for 8a68f02
README.md
@@ -77,32 +77,6 @@ Completed
77
}
78
```
79
80
-### Demo code hack
81
-
82
-```js
83
-// this comes from the document in a <link /> tag
84
-const session = "";
85
86
-// this is your user id on github
87
-const userId = "123";
88
89
-const ws = new WebSocket(
90
- `wss://alive.github.com/_sockets/u/${userId}/ws?session=${session}`
91
-);
92
93
-ws.onopen = function () {
94
- // handshake packet
95
- ws.send(
96
- JSON.stringify({
97
- subscribe: {
98
- [session]: "",
99
- },
100
- })
101
- );
102
-};
103
104
-// listen for all messages
105
-ws.onmessage = function (data) {
106
- console.log(data);
107
108
-```
+### Example
+
+See demo in `client.ts`
0 commit comments