Developers

Download

Browser client

Extensions

Faye clients support an extension system that lets you intercept messages as
they pass between the client and the server. To add an extension to a client,
just call:

client.addExtension(extension);

extension should be an object with an incoming() or outgoing() method
(or both). These methods accept a message and a callback function, and
should call the callback with the message after any necessary modifications
have been made. For example, a simple logging extension would look like: