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 19eccd8 commit 3f004f7Copy full SHA for 3f004f7
bundles/socket/public/js/bootstrap.js
@@ -34,7 +34,8 @@ class SocketStore {
34
*/
35
async build() {
36
// Run socket
37
- this.socket = io.connect(`//${window.location.hostname}`, store.get('config.socket.params') || {});
+ this.socket = io.connect(store.get('config.socket.url') === 'host' ? `//${window.location.hostname}` : store.get('config.socket.url'),
38
+ store.get('config.socket.params') || {});
39
40
// socket on
41
this.socket.on('connect', () => {
0 commit comments