mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +00:00
Update remote
This commit is contained in:
@@ -34,7 +34,6 @@ var utils = require('./utils');
|
|||||||
var config = require('./config');
|
var config = require('./config');
|
||||||
var sjcl = require('../../../build/sjcl');
|
var sjcl = require('../../../build/sjcl');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Interface to manage the connection to a Ripple server.
|
Interface to manage the connection to a Ripple server.
|
||||||
|
|
||||||
@@ -307,15 +306,15 @@ Remote.prototype._set_state = function (state) {
|
|||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case 'online':
|
case 'online':
|
||||||
this._online_state = 'open';
|
this._online_state = 'open';
|
||||||
this._connected = true;
|
this._connected = true;
|
||||||
this.emit('connect');
|
this.emit('connect');
|
||||||
this.emit('connected');
|
this.emit('connected');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'offline':
|
case 'offline':
|
||||||
this._online_state = 'closed';
|
this._online_state = 'closed';
|
||||||
this._connected = false;
|
this._connected = false;
|
||||||
this.emit('disconnect');
|
this.emit('disconnect');
|
||||||
this.emit('disconnected');
|
this.emit('disconnected');
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user