diff options
Diffstat (limited to 'lib/websocket.js')
-rw-r--r-- | lib/websocket.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/websocket.js b/lib/websocket.js index 8ccb3d40b..93d58aeba 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -21,8 +21,9 @@ * @date 2014 */ -var WebSocket = require('ws'); // jshint ignore:line - +if(process.env.NODE_ENV !== "build") { + var WebSocket = require('ws'); // jshint ignore:line +} var WebSocketProvider = function(host) { // onmessage handlers |