The facil.io framework offers an HTTP/1.1 and Websocket implementation which can be found in the "http" folder.
This implementation includes pub/sub services for Websocket connections as well as other features.
This documentation is incomplete. I would love your help to finish it up. Until that time, please read the documentation in the websockets.h
header file.