Threadline.OperatorSurface.SessionPlug (Threadline v0.6.0)

Copy Markdown View Source

A Plug that executes a configured actor_fn on the connection and stores the serialized ActorRef in the session under the "threadline_actor_ref" key.

This allows LiveView mounts (which don't have access to connection headers or assigns) to read the authenticated actor directly from the session.