Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Streaming.prototype.subscribe = function(name, listener) {
if (!this._fayeClient) {
if (Faye.Transport.NodeHttp) {
Faye.Transport.NodeHttp.prototype.batching = false; // prevent streaming API server error
}
this._fayeClient = this._createClient();
}
this._fayeClient.subscribe("/topic/"+name, listener);
return this;
};
Streaming.prototype.subscribe = function(name, listener) {
if (!this._fayeClient) {
if (Faye.Transport.NodeHttp) {
Faye.Transport.NodeHttp.prototype.batching = false; // prevent streaming API server error
}
this._fayeClient = this._createClient();
}
this._fayeClient.subscribe("/topic/"+name, listener);
return this;
};