File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
+ 1.6.8 / 2016-01-25
3
+ ==================
4
+
5
+ * safely resolve ` ws ` module
6
+
2
7
1.6.7 / 2016-01-10
3
8
==================
4
9
Original file line number Diff line number Diff line change @@ -1883,11 +1883,16 @@ var BrowserWebSocket = global.WebSocket || global.MozWebSocket;
1883
1883
1884
1884
/**
1885
1885
* Get either the `WebSocket` or `MozWebSocket` globals
1886
- * in the browser or the WebSocket-compatible interface
1887
- * exposed by `ws` for Node environment.
1886
+ * in the browser or try to resolve WebSocket-compatible
1887
+ * interface exposed by `ws` for Node-like environment.
1888
1888
*/
1889
1889
1890
- var WebSocket = BrowserWebSocket || ( typeof window !== 'undefined' ? null : _dereq_ ( 'ws' ) ) ;
1890
+ var WebSocket = BrowserWebSocket ;
1891
+ if ( ! WebSocket && typeof window === 'undefined' ) {
1892
+ try {
1893
+ WebSocket = _dereq_ ( 'ws' ) ;
1894
+ } catch ( e ) { }
1895
+ }
1891
1896
1892
1897
/**
1893
1898
* Module exports.
Original file line number Diff line number Diff line change 2
2
"name" : " engine.io-client" ,
3
3
"description" : " Client for the realtime Engine" ,
4
4
"license" : " MIT" ,
5
- "version" : " 1.6.7 " ,
5
+ "version" : " 1.6.8 " ,
6
6
"homepage" : " https://github.com/socketio/engine.io-client" ,
7
7
"contributors" : [
8
8
{
You can’t perform that action at this time.
0 commit comments