|
@ -16,6 +16,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
/** @file websocket.js |
|
|
/** @file websocket.js |
|
|
* @authors: |
|
|
* @authors: |
|
|
|
|
|
* Jeffrey Wilcke <jeff@ethdev.com> |
|
|
* Marek Kotewicz <marek@ethdev.com> |
|
|
* Marek Kotewicz <marek@ethdev.com> |
|
|
* Marian Oancea <marian@ethdev.com> |
|
|
* Marian Oancea <marian@ethdev.com> |
|
|
* @date 2014 |
|
|
* @date 2014 |
|
@ -50,6 +51,7 @@ if(process.env.NODE_ENV !== "build") { |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
WebSocketProvider.prototype.send = function(payload) { |
|
|
WebSocketProvider.prototype.send = function(payload) { |
|
|
if(this.ready) { |
|
|
if(this.ready) { |
|
|
var data = JSON.stringify(payload); |
|
|
var data = JSON.stringify(payload); |
|
|