aboutsummaryrefslogtreecommitdiffstats
path: root/client/client.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client/client.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js
index bd3d036..380318e 100644
--- a/client/client.js
+++ b/client/client.js
@@ -74,7 +74,12 @@ function join(channel) {
} else {
// for local installs
var protocol = location.protocol === 'https:' ? 'wss:' : 'ws:'
- ws = new WebSocket(protocol + '//' + document.domain + ':6060');
+ // if you changed the port during the server config, change 'wsPath'
+ // to the new port (example: ':8080')
+ // if you are reverse proxying, change 'wsPath' to the new location
+ // (example: '/chat-ws')
+ var wsPath = ':6060';
+ ws = new WebSocket(protocol + '//' + document.domain + wsPath);
}
var wasConnected = false;