server.js: added checks for socket.emit2() and socket.emit2_partner().