We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1d7428 + aedaa79 commit b3a30e9Copy full SHA for b3a30e9
src/LiveQueryClient.js
@@ -324,7 +324,7 @@ export default class LiveQueryClient extends EventEmitter {
324
if (process.env.PARSE_BUILD === 'node') {
325
return require('ws');
326
} else if (process.env.PARSE_BUILD === 'browser') {
327
- return typeof WebSocket === 'function' ? WebSocket : null;
+ return typeof WebSocket === 'function' || typeof WebSocket === 'object' ? WebSocket : null;
328
} else if (process.env.PARSE_BUILD === 'react-native') {
329
return WebSocket;
330
}
0 commit comments