Merge branch 'develop' of https://github.com/ripple/ripple-lib into develop

This commit is contained in:
wltsmrz
2013-12-23 11:49:30 -08:00
2 changed files with 42 additions and 3 deletions

View File

@@ -163,6 +163,11 @@ Server.prototype.connect = function() {
if (this._ws) this._ws.close();
var WebSocket = Server.websocketConstructor();
if (!WebSocket) {
throw new Error("No websocket support detected!");
}
var ws = this._ws = new WebSocket(this._opts.url);
this._shouldConnect = true;