Auto reconnect.

This commit is contained in:
Julien Fontanet 2015-02-10 17:53:43 +01:00
parent e6ebc347e5
commit 0b17556fa4

View File

@ -216,6 +216,9 @@ function Xo(opts) {
self._connection = null;
self.objects.clear();
self.status = 'disconnected';
// Automatically reconnect.
self.connect();
});
self._api.on('notification', function (notification) {