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.
1 parent 7a49ca7 commit b918929Copy full SHA for b918929
src/ParseLiveQuery.js
@@ -1,5 +1,4 @@
1
import events from 'events';
2
-import url from 'url';
3
import LiveQueryClient from './LiveQueryClient';
4
import CoreManager from './CoreManager';
5
@@ -100,7 +99,7 @@ let DefaultLiveQueryController = {
100
99
101
// If we can not find Parse.liveQueryServerURL, we try to extract it from Parse.serverURL
102
if (!liveQueryServerURL) {
103
- let host = url.parse(CoreManager.get('SERVER_URL')).host;
+ let host = CoreManager.get('SERVER_URL').replace(/^https?:\/\//, '');
104
liveQueryServerURL = 'ws://' + host;
105
CoreManager.set('LIVEQUERY_SERVER_URL', liveQueryServerURL);
106
}
0 commit comments