package ez_api

Build not checked
  1. Overview
  2. No Docs
Easy API library and tools

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v1.0.0.tar.gz
md5=d4dcb8a0be9cf87fca6471cecf083d9a
sha512=452a5de00bf0b51926d9c4c5c9062981c372ebce9ccfd0586b1e1b9b42c96721035dc7cd405e4bdd936ae0a7e69f442e4063713756b7cdac246319198fb89e2c

doc/src/ez_api.ws_server_httpaf/wsHttpaf.ml.html

Source file wsHttpaf.ml

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

let ws _fd _req ?onclose:_ ?step:_ ~react:_ ~bg:_ _id =
  (if !first then (
      first := false;
      Format.eprintf
        "\027[0;31merror: websocket-httpaf-lwt not installed\027[0m\n\
         try: `opam install calendar`\n\
         `opam pin add websocket-httpaf.~dev https://github.com/anmonteiro/websocket-httpaf.git`\n\
         `opam pin add websocket-httpaf-lwt.~dev https://github.com/anmonteiro/websocket-httpaf.git`@."));
  Lwt.return_error `no_ws_library