mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-01 01:25:48 +00:00
Load WebSocket module later.
This one change allows us to load the IE polyfills after the Ripple library. Otherwise we would have to split up our dependencies into two groups, which would add a bunch of complexity to the build system that I'd rather avoid.
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
//
|
||||
|
||||
// npm
|
||||
var WebSocket = require('ws');
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var Amount = require('./amount.js').Amount;
|
||||
var Currency = require('./amount.js').Currency;
|
||||
@@ -427,6 +425,7 @@ Remote.prototype._connect_start = function () {
|
||||
|
||||
if (this.trace) console.log("remote: connect: %s", url);
|
||||
|
||||
var WebSocket = require('ws');
|
||||
var ws = this.ws = new WebSocket(url);
|
||||
|
||||
ws.response = {};
|
||||
|
||||
Reference in New Issue
Block a user