added logging in websocket_client.js