Created
August 3, 2011 21:38
-
-
Save yankov/1123843 to your computer and use it in GitHub Desktop.
Faye node.js server
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
//download the lib from http://faye.jcoglan.com/download.html | |
var http = require('http'), | |
faye = require('./faye/faye-node.js'); | |
var bayeux = new faye.NodeAdapter({ | |
mount: '/faye', | |
timeout: 45 | |
}); | |
bayeux.attach(server); | |
server.listen(3333); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment