ZenWebsocket.Client.TransportErrors (ZenWebsocket v0.8.0)

Copy Markdown View Source

Gun error/down logging and retry dispatch for ZenWebsocket.Client.

Summary

Functions

Logs a Gun down event and runs the retry state machine.

Logs a Gun stream error and runs the retry state machine.

Logs a monitored Gun process exit and runs the retry state machine.

Functions

handle_gun_down(state, gun_pid, protocol, reason, killed_streams)

@spec handle_gun_down(map(), pid(), term(), term(), term()) ::
  {:noreply, map()} | {:stop, term(), map()}

Logs a Gun down event and runs the retry state machine.

handle_gun_error(state, gun_pid, stream_ref, reason)

@spec handle_gun_error(map(), pid(), reference(), term()) ::
  {:noreply, map()} | {:stop, term(), map()}

Logs a Gun stream error and runs the retry state machine.

handle_process_down(state, gun_pid, ref, reason)

@spec handle_process_down(map(), pid(), reference(), term()) ::
  {:noreply, map()} | {:stop, term(), map()}

Logs a monitored Gun process exit and runs the retry state machine.