MichaelSB
MichaelSB
What now follows is just my opinion on the matter... There's more to "Sec-WebSocket-Protocol" than just adding a header to make it work correctly. It may be the case in...
What you just described is likely what I would do. Sounds good to me :D
This restriction seems to have its origin in crow::session::multi_value, which is a (wrapped) variant using C++-17 or a struct using crow::json::wvalue instead when C++-11/14 is used. I don't see how...
I'll try to add some unit-tests for this. Thanks for the review.
I could use your split function in my websocket compression PR, if yours is merged first :D
If I don't miss it, I think a getter is needed for the selected subprotocol in the connection. Otherwise looks good to me.
I think that's it :) I asked for the getter, because users must be able to know which subprotocol was selected and probably switch code paths accordingly.