CC: Tweaked

CC: Tweaked

42M Downloads

get selected websocket subprotocol

natedogith1 opened this issue ยท 1 comments

commented

#828 added support for specifying subprotocols when creating a websocket, but there's no way to check which protocol the server selected.

commented

I wonder if it'd make more sense to add a getHeaders method, like we do for HTTP responses. Though there's an argument that's a property of the initial connection, rather than the property of the websocket itself. Not sure!