Last active
December 29, 2015 22:59
-
-
Save mecab/7740345 to your computer and use it in GitHub Desktop.
RxJS and Socket.io
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 emit = Rx.Observable | |
.fromNodeCallback(that.socket.emit, | |
null, | |
that.socket); // Socket.io needs the socket as the context to handle ack. | |
emit.subscribe(function() { | |
// ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment