Source file ezWs.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 1 "src/websocket/unix/default/ezWs.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.                   *)
(*                                                                        *)
(**************************************************************************)

include EzWsCommon.Types

let err = "ezWs not implemented, either install httpun-ws-lwt-unix or websocket-lwt-unix"

let connect ?msg:_ ?protocols:_ ?error:_ ~react:_ _url = Lwt.return_error err

let connect0 ?msg:_ ?protocols:_ ?error:_ ~react:_ _base _service = Lwt.return_error err