kassa_

Results 6 comments of kassa_

In my opinion, I think the entry point should be either `main` like 90% of the languages or "no function at all" like NodeJS or C#. It could be specified...

I'm missing the "Sec-WebSocket-Protocol" header. I've tried editing the code of the latest release version with the "onhandshake" callback and it works pretty well.

You're right ! I can add something like that just for "Sec-WebSocket-Protocol" then. Like a hook on the WebSocketRule that takes a list of strings, check that in the Connection...

I rewrote find_first_of algorithm and put it in utility.h :)

Currently, the "subprotocol_" is only a private variable and is only used in the [Connection::start](https://github.com/CrowCpp/Crow/compare/master...KaSSaaaa:Crow:ws-subprotocols#diff-e16d65f62049168bfc9ebf5932b667ce174bb53215a6e48c8d4c46b4ae113d5aR287-R292) but I can add a getter in the interface and implementation if it's needed.

Apparently missed the include of for utility::find_first_of ...