The websockets library allows passing an AcceptRequest when upgrading the request to websockets, which at the moment only contains the subprotocol to use with the client. The list of subprotocols that the client is prepared to speak is in the RequestHead. |
||
|---|---|---|
| .. | ||
| WebSockets.hs | ||