changed from socket.io to ws (tests in client)