vbmithr / ocaml-websocket

Websocket library for OCaml
ISC License
161 stars 44 forks source link

Added Websocket_async.server can response with Sec-WebSocket-Protocol #99

Closed kkazuo closed 6 years ago

kkazuo commented 6 years ago

New select_protocol optional parameter is function. This function take subprotocol header value and must return accepted subprotocol or None if no apropriate. This function does not call if client does not request subprotocol.

vbmithr commented 6 years ago

Merged manually. Thanks.