wip: add websocket library

This commit is contained in:
Simon Cruanes 2024-02-02 14:58:59 -05:00
parent 03a2b38bad
commit fd772bc023
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
6 changed files with 52 additions and 0 deletions

View file

@ -27,6 +27,16 @@
(ptime :with-test)
(qcheck-core (and (>= 0.9) :with-test))))
(package
(name tiny_httpd_ws)
(synopsis "Websockets for tiny_httpd")
(depends
(tiny_httpd (= :version))
(base64 (>= 3.0))
crypokit
(logs :with-test)
(odoc :with-doc)))
(package
(name tiny_httpd_camlzip)
(synopsis "Interface to camlzip for tiny_httpd")

1
src/ws/common_.ml Normal file
View file

@ -0,0 +1 @@
module IO = Tiny_httpd_io

7
src/ws/dune Normal file
View file

@ -0,0 +1,7 @@
(library
(name tiny_httpd_ws)
(public_name tiny_httpd_ws)
(synopsis "Websockets for tiny_httpd")
(private_modules common_)
(libraries tiny_httpd base64 cryptokit))

0
src/ws/tiny_httpd_ws.ml Normal file
View file

0
src/ws/tiny_httpd_ws.mli Normal file
View file

34
tiny_httpd_ws.opam Normal file
View file

@ -0,0 +1,34 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.16"
synopsis: "Websockets for tiny_httpd"
maintainer: ["c-cube"]
authors: ["c-cube"]
license: "MIT"
homepage: "https://github.com/c-cube/tiny_httpd/"
bug-reports: "https://github.com/c-cube/tiny_httpd/issues"
depends: [
"dune" {>= "2.9"}
"tiny_httpd" {= version}
"base64" {>= "3.0"}
"crypokit"
"logs" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/c-cube/tiny_httpd.git"