eliihen / wsta

A CLI development tool for WebSocket APIs
GNU General Public License v3.0
632 stars 19 forks source link

Add Subprotocol negotation #8

Open lancehunt opened 8 years ago

lancehunt commented 8 years ago

Cool tool! It would be nice to have subprotocol negotiation baked-in via a -s "mysubprotocol" flag.

This works for the 1st leg of the handshake, but seems to fail to respond to the server's reply: wsta -I -H "Sec-WebSocket-Protocol:mysubprotocl" wss://etc.com

eliihen commented 8 years ago

Hi, thanks!

Is it possible for you to provide a URL of an example of an endpoint with a protocol that does not work with wsta at this time? If I get something to work with, I may have a look at the possibility of adding this feature sometime soon.