package ez_api

  1. Overview
  2. No Docs
Easy API library and tools

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.1.1.tar.gz
md5=65d5fef737c82120d579d10a1727b8e4
sha512=2ea5c072d5a4c264263264cfd485eadae2bd7f47949dbc9cb4cf93db89640d91542463ed8b9f4d6679f21bbd1efbfa6c224ff36f1807a8d8af9d0568cf8a4292

doc/src/ez_api.ws_server_cohttp/wsCohttp.ml.html

Source file wsCohttp.ml

1
2
3
4
5
6
7
8
9
10
# 1 "src/server/websocket/cohttp/wsCohttp.dummy.ml"
let first = ref true

let ws _req ?onclose:_ ?step:_ ~react:_ ~bg:_ _id =
  (if !first then (
      first := false;
      Format.eprintf
        "\027[0;31merror: websocket-lwt-unix not installed\027[0m\n\
         try: `opam install calendar websocket-lwt-unix`@."));
  Lwt.return_error `no_ws_library