mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Introducing wsPath to update path for local installation
This commit is contained in:
parent
101f20c084
commit
75fa07b213
|
@ -74,7 +74,12 @@ function join(channel) {
|
||||||
} else {
|
} else {
|
||||||
// for local installs
|
// for local installs
|
||||||
var protocol = location.protocol === 'https:' ? 'wss:' : 'ws:'
|
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;
|
var wasConnected = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user