reason-native-web / morph

A webframework for Reason and OCaml
https://reason-native-web.github.io/morph/
MIT License
139 stars 7 forks source link

Initial websocket support #45

Closed ulrikstrid closed 4 years ago

ulrikstrid commented 4 years ago

Websocket library for Morph, it will look something like this for a simple websocket server that just echos responses:

let websocket_handler = request => {
  Morph_websocket.handler((send, listen) => {listen(send)}, request);
};

let server =
  Morph_websocket.handler(~port=3333, ~address=Unix.inet_addr_loopback, ());

server.start(websocket_handler) |> Lwt_main.run;

TODO: Need to try it out some more Add a override for digestif to esy-opam-overrides

github-actions[bot] commented 4 years ago

I have updated your lock dirs and formatted the code. Please @ulrikstrid pull the last commit before pushing any more changes.

github-actions[bot] commented 4 years ago

I have updated your lock dirs and formatted the code. Please @ulrikstrid pull the last commit before pushing any more changes.

github-actions[bot] commented 4 years ago

I have updated your lock dirs and formatted the code. Please @ulrikstrid pull the last commit before pushing any more changes.