mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(config) /config -> prefix + /config
This commit is contained in:
parent
4a67f4537c
commit
b3b06f9d6f
2 changed files with 4 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ var CloudCmd, Util, DOM, io;
|
|||
};
|
||||
|
||||
if (!error) {
|
||||
socket = io.connect(href + '/config', {
|
||||
socket = io.connect(href + prefix + '/config', {
|
||||
'max reconnection attempts' : Math.pow(2, 32),
|
||||
'reconnection limit' : FIVE_SECONDS,
|
||||
path: prefix + '/socket.io'
|
||||
|
|
|
|||
|
|
@ -77,7 +77,9 @@
|
|||
}
|
||||
|
||||
function listen(sock, authCheck) {
|
||||
sock.of('/config')
|
||||
var prefix = manage('prefix');
|
||||
|
||||
sock.of(prefix + '/config')
|
||||
.on('connection', function(socket) {
|
||||
var connect = exec.with(connection, socket);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue