diff --git a/lib/server.js b/lib/server.js index 56888af2..76e8ecd0 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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') }) }));