Created
April 3, 2018 19:36
-
-
Save normalhuman/fc72525b3613c3fb4f7ed0d96c9dd1df to your computer and use it in GitHub Desktop.
The number of unread notifications for a user with given network id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w = new WebSocket("wss://qa.sockets.stackexchange.com/"); | |
w.onmessage = function(e) { | |
d = JSON.parse(e.data).data; | |
console.log(d); | |
if (d == "hb") { | |
w.send("hb"); | |
} | |
}; | |
w.onopen = function() { | |
w.send("4606062-topbar"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment