Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/x.js Secret

Created November 28, 2012 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/04c80d5ef47274961fc7 to your computer and use it in GitHub Desktop.
Save Raynos/04c80d5ef47274961fc7 to your computer and use it in GitHub Desktop.
function socketIONoSuckstream(uri, event) {
return from(function (push, end) {
var socket = io.connect(uri)
socket.on(event, push)
// does socket.io even have a close / end??
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment