Skip to content

Instantly share code, notes, and snippets.

@yankov
Created August 3, 2011 21:38
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 yankov/1123843 to your computer and use it in GitHub Desktop.
Save yankov/1123843 to your computer and use it in GitHub Desktop.
Faye node.js server
//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