Both proposals are rough drafts, but feedback is welcome & appreciated.
An approach where curl handles the connection & gives the app control: https://github.com/schmidtw/curl-websocket-proposal/blob/main/connect_only.md
An approach where curl handles most of the heavy lifting: https://github.com/schmidtw/curl-websocket-proposal/blob/main/multi.md