client: WebSocket URL formatting in session class