ocaml lwt based websocket library
  • OCaml 90%
  • Makefile 10%
Find a file
2012-10-21 12:19:57 +09:00
example first commit 2012-10-21 12:19:57 +09:00
test first commit 2012-10-21 12:19:57 +09:00
channel.ml first commit 2012-10-21 12:19:57 +09:00
channel.mli first commit 2012-10-21 12:19:57 +09:00
frame.ml first commit 2012-10-21 12:19:57 +09:00
frame.mli first commit 2012-10-21 12:19:57 +09:00
httpRequest.ml first commit 2012-10-21 12:19:57 +09:00
httpRequest.mli first commit 2012-10-21 12:19:57 +09:00
INSTALL first commit 2012-10-21 12:19:57 +09:00
LICENSE first commit 2012-10-21 12:19:57 +09:00
Makefile first commit 2012-10-21 12:19:57 +09:00
META first commit 2012-10-21 12:19:57 +09:00
README.md first commit 2012-10-21 12:19:57 +09:00
utils.ml first commit 2012-10-21 12:19:57 +09:00

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."