migrate to socket.io 1