replace socket.io with primus using websockets