Source file wsHttpun.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 1 "src/server/websocket/httpun/wsHttpun.dummy.ml"
(**************************************************************************)
(*                                                                        *)
(*                 Copyright 2018-2025 OCamlPro                           *)
(*                                                                        *)
(*  All rights reserved. This file is distributed under the terms of the  *)
(*  GNU Lesser General Public License version 2.1, with the special       *)
(*  exception on linking described in the file LICENSE.                   *)
(*                                                                        *)
(**************************************************************************)

let first = ref true

let ws _fd _req ?onclose:_ ?step:_ ?body:_ ~react:_ ~bg:_ _id =
  (if !first then (
      first := false;
      Format.eprintf "\027[0;31merror: websocket are not yet implemented for httpup@."));
  Lwt.return_error `no_ws_library