mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +00:00
Handle errors with initial subscribe request.
This commit is contained in:
@@ -964,6 +964,11 @@ Remote.prototype._server_prepare_subscribe = function (callback) {
|
|||||||
self.emit('subscribed');
|
self.emit('subscribed');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
request.on('error', function (err) {
|
||||||
|
// XXX We need a better global error handling
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
|
||||||
self.emit('prepare_subscribe', request);
|
self.emit('prepare_subscribe', request);
|
||||||
|
|
||||||
request.callback(callback);
|
request.callback(callback);
|
||||||
|
|||||||
Reference in New Issue
Block a user