Ability to use the old Chainpad server in parallel of the netflux server

This commit is contained in:
Yann Flory
2016-04-11 14:27:58 +02:00
parent 0b3d6e15b8
commit 692fe24b32
2 changed files with 2 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ var create = module.exports.create = function (socketServer, store) {
};
socketServer.on('connection', function(socket) {
if(socket.upgradeReq.url !== '/cryptpad_websocket_old') { return; }
socket.on('message', function(message) {
try {
handleMessage(ctx, socket, message);