Skip to content
vic

tcoopman/dream-channels

Phoenix (Elixir) like channels for Dream (Ocaml)

tcoopman/dream-channels.json
{
"createdAt": "2021-07-01T06:40:38Z",
"defaultBranch": "main",
"description": "Phoenix (Elixir) like channels for Dream (Ocaml)",
"fullName": "tcoopman/dream-channels",
"homepage": null,
"language": "JavaScript",
"name": "dream-channels",
"pushedAt": "2021-07-20T18:30:44Z",
"stargazersCount": 15,
"topics": [],
"updatedAt": "2023-10-03T23:51:44Z",
"url": "https://github.com/tcoopman/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.

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

you need esy, npm and watchexec.

npm test