LightningWeb.WorkflowChannel (Lightning v2.20.1)

Copy Markdown View Source

Phoenix Channel for binary Yjs collaboration messages.

Summary

Functions

Saves the current Y.Doc state through the Session.

Functions

child_spec(init_arg)

handle_in(event, params, socket)

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(triplet)