fix(config) /config -> prefix + /config

This commit is contained in:
coderaiser 2016-01-31 11:35:51 -05:00
parent 4a67f4537c
commit b3b06f9d6f
2 changed files with 4 additions and 2 deletions

View file

@ -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'

View file

@ -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);