Abstract
Optional
options: EventEmitterOptionsAbstract
addAdd a custom extension to the underlying client.
The json function for the extension.
Abstract
disableAbstract
disconnectAbstract
handshakeAbstract
setAbstract
subscribeSubscribes to Comet topics. Subscribe should perform a handshake if one hasn't been performed yet.
The topic to subscribe to.
The callback to execute once a message has been received.
Comet client interface. The is to allow for mocking the inner streaming Cometd implementation. The Faye implementation is used by default but it could be used to adapt another Cometd impl.