Skip to content

Commit

Permalink
fix NodeWebSocket declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlesisz committed Jun 14, 2019
1 parent 57f9d45 commit 6487c20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/transports/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ if (typeof WebSocket !== 'undefined') {
BrowserWebSocket = WebSocket;
} else if (typeof self !== 'undefined') {
BrowserWebSocket = self.WebSocket || self.MozWebSocket;
} else {
}

if (typeof window === 'undefined') {
try {
NodeWebSocket = require('ws');
} catch (e) { }
Expand Down

0 comments on commit 6487c20

Please sign in to comment.