Session recorder lifecycle and frame writes for ZenWebsocket.Client.
Summary
Functions
Records a frame when a recorder process exists.
Starts a session recorder when record_to is a path.
Stops a session recorder if it is still alive.
Functions
@spec maybe_record(pid() | nil, ZenWebsocket.Recorder.direction(), term()) :: :ok
Records a frame when a recorder process exists.
Starts a session recorder when record_to is a path.
@spec maybe_stop(pid() | nil) :: :ok
Stops a session recorder if it is still alive.