Created
September 16, 2017 08:10
-
-
Save khoben/72eded4f7cdfe52406b3fe9c096461f2 to your computer and use it in GitHub Desktop.
get donationalerts donation events
This file contains 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
var socket = io("http://socket.donationalerts.ru:3001"); | |
socket.emit('add-user', {token: "token", type: "minor"}); | |
socket.on('donation', function(msg){ | |
console.log(msg); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment