Added logging of received WebSocket messages.