Home » Web Dev & Design » Faye: Simple pub/sub messaging system based on Bayeux protocol

Faye: Simple pub/sub messaging system based on Bayeux protocol

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.

faye pub sub messaging Bayeux protocol 470x382 Faye: Simple pub/sub messaging system based on Bayeux protocol

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.

Source Website:

faye.jcoglan.com

github.com/faye/faye

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


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge