Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tategakibunko/lwt-websocket
ocaml lwt based websocket library
https://github.com/tategakibunko/lwt-websocket
lwt ocaml websockets
Last synced: about 2 months ago
JSON representation
ocaml lwt based websocket library
- Host: GitHub
- URL: https://github.com/tategakibunko/lwt-websocket
- Owner: tategakibunko
- License: other
- Created: 2012-10-21T03:18:01.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-21T03:21:14.000Z (about 12 years ago)
- Last Synced: 2023-03-22T16:57:03.475Z (almost 2 years ago)
- Topics: lwt, ocaml, websockets
- Language: OCaml
- Homepage:
- Size: 565 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lwt-websocket
1. provide server to client channel of websocket.
2. provide client to server channel of websocket.
## server to client channel
Lwt_websocket.Channel.accept sock_listen >>= fun (addr, channel) ->
channel#write_text_frame "hello, i am server."## client to server channel
Lwt_websocket.Channel.connect "127.0.0.1" 8080 ~sec_socket_key:"aaa" >>= fun channel ->
channel#write_text_frame "hello, i am client."