tien commented on PR #2506: URL: https://github.com/apache/tinkerpop/pull/2506#issuecomment-1977944006
@kenhuuu regarding the user agent header [used](https://tinkerpop.apache.org/docs/current/dev/provider/#_graph_driver_provider_requirements) by Gremlin server This is likely a separate discussion, but `User-Agent` header might not be the best way to identify client supported GLV version. Since browser environment for example doesn't allow you to set or modify this for web socket connection. What might be better is using the [`Sec-WebSocket-Protocol`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism#sec-websocket-protocol) header instead. Which is designed to specify the sub-protocol requested by client & can be set in the browser by doing: ```js new WebSocket("ws://localhost:8182", "glv3.7.0"); ``` -- 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