Faye: Simple pub/sub messaging system based on Bayeux protocol
Faye: A Simple Bayeux protocol based Pub/Sub Messaging for the Web
Faye is a Bayeux protocol based publish subscribe messaging system. It also includes a solid set of tools for easily building plain WebSocket servers and clients, compatible with a wide range of protocol versions. It provides message servers for Node.js and Ruby, and clients for use on the server and in all major web browsers.
Starting a server
var Faye = require(‘faye’),
server = new Faye.NodeAdapter({mount: ‘/’});
server.listen(8000);
Creating a client
var client = new Faye.Client(‘http://localhost:8000/’);
client.subscribe(‘/messages’, function(message) {
alert(‘Got a message: ‘ + message.text);
});
Sending messages
client.publish(‘/messages’, {
text: ‘Hello world’
});
if you have any question about Faye Simple pub/sub messaging system drop a comment below.
License (The MIT License)
Related search terms:
- faye bayeaux protocols
- faye pubsub apple
- pub sub for android
- simple publish and subscribe for faye using bayeux in android
13 May, 2012

