vbmithr / ocaml-websocket

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

async: Add client_connect. #111

Closed ryanslade closed 4 years ago

ryanslade commented 5 years ago

This provides an easy interface for opening a connection given a websocket URL.

As a new user of this library I spent hours trying to open a simple connection so I hope this helps make things easier for others.

vbmithr commented 5 years ago

I wrote https://github.com/vbmithr/async-uri for this purpose

ryanslade commented 5 years ago

Ok, great. Any plans on releasing that on opam?

Also, it would be great to document how to use it with the websocket library somewhere. As someone with no experience of using conduit it was very difficult to figure out how to open a connection.