Documenting Phoenix Channels

Are there any tools for writing documentation Websocket API for Phoenix channels?


I know of

1 Like

Thank u! It looks good, but there are only 3 testing helpers:

  • doc_push
  • doc_broadcast_from
  • doc_broadcast_from!

Actually I’d like to document the socket connection, channels joining and replies…

You can document the replies like this:

assert_push("msg", payload) |> doc(description: "description of the channel reply")
1 Like