flux v0.1.1 Flux.Websocket.Handler behaviour

Link to this section Summary

Link to this section Types

Link to this type context()
context() :: {module(), any()}

Link to this section Callbacks

Link to this callback handle_frame(arg0, binary, arg2, context)
Link to this callback handle_info(any, arg1, context)
handle_info(any(), Flux.Websocket.Conn.t(), context()) ::
  {:ok, Flux.Websocket.Conn.t(), context()}
Link to this callback handle_terminate(atom, arg1, context)
handle_terminate(atom(), Flux.Websocket.Conn.t(), context()) ::
  {:ok, Flux.Websocket.Conn.t(), context()}
Link to this callback init(arg0, any)
init(Flux.Conn.t(), any()) :: {:ok, any()} | :error