incorrect usage of socket.io