# `LightningWeb.WorkflowChannel`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/lightning_web/channels/workflow_channel.ex#L1)

Phoenix Channel for binary Yjs collaboration messages.

# `child_spec`

# `handle_in`

Saves the current Y.Doc state through the Session.

The reply is deferred. `Session.save_workflow/2` may wait on the adaptor
catalogue's first load, so the call runs off the channel process and
the reply goes out with `Phoenix.Channel.reply/2` when it finishes.

Success: `{:ok, %{saved_at: DateTime, lock_version: integer}}`
Error: `{:error, %{errors: map, type: string}}`

# `start_link`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
