dream-channels icon indicating copy to clipboard operation
dream-channels copied to clipboard

Phoenix (Elixir) like channels for Dream (Ocaml)

Dream-Channels

Status: pre-alpha - will break all the time!

Websocket channel implementation for dream inspired by Phoenix Channels

The goal of this library is to build a higher level abstraction around websockets in dream to make it easy to build webapplications that use websockets.

The design is highly inspired from Phoenix.

TODO

  • [x] define protocol
  • [x] create client library
  • [ ] handle both string and binary payloads
  • [ ] create a chat example with multiple rooms
  • [ ] documentation

Development

you need esy, npm and watchexec.

Test

npm test