fix(server) prefix + /socket -> path.join(prefix, /socket)

This commit is contained in:
coderaiser 2016-02-01 13:31:16 -05:00
parent 7badb3eea0
commit 2e9910ddd3

View file

@ -4,6 +4,7 @@
var DIR_LIB = './',
DIR_SERVER = DIR_LIB + 'server/',
path = require('path'),
http = require('http'),
cloudcmd = require(DIR_LIB + 'cloudcmd'),
@ -39,7 +40,7 @@
app.use(cloudcmd({
config: options,
socket: io(server, {
path: config('prefix') + '/socket.io'
path: path.join('/', config('prefix'), 'socket.io')
})
}));