The constructor stored only uc.path in path_, discarding uc.query, so the WebSocket upgrade handshake sent the Request-URI without the query string. Append the query to path_ so query parameters (e.g. auth tokens) are sent.