Umbra v0.0.3 Umbra.Extension.Ping behaviour View Source

The Ping extension defines different ping method.

Link to this section Summary

Callbacks

This callback is called each time the server receives a ping.

Link to this section Callbacks

Specs

handle_ping(state :: term()) ::
  {:noreply, new_state :: term()}
  | {:noreply, new_state :: term(),
     timeout() | :hibernate | {:continue, term()}}
  | {:stop, reason :: term(), new_state :: term()}

This callback is called each time the server receives a ping.