kirill-stepanishin commented on code in PR #3213: URL: https://github.com/apache/tinkerpop/pull/3213#discussion_r2371330685
########## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/connection.js: ########## @@ -163,7 +163,13 @@ class Connection extends EventEmitter { this._ws.addEventListener('open', this.#handleOpen); this._ws.addEventListener('error', this.#handleError); - this._ws.on('unexpected-response', this.#handleUnexpectedResponse); + // Only attach unexpected-response listener for Node.js WebSocket (ws package) + // Browser WebSocket does not have this event and .on() method + if (!useGlobalWebSocket) { Review Comment: Applied, thank you -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@tinkerpop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org