Starship.Handlers.Websocket behaviour (Starship v0.0.1) View Source

A behaviour module fo use when creating HTTP handlers for the Starship Webserver.

Link to this section Summary

Link to this section Callbacks

Specs

connect(Starship.Reactor.Conn.t(), map()) :: {:ok, map()} | :reject
Link to this callback

handle_binary(binary, map)

View Source (optional)

Specs

handle_binary(binary(), map()) :: {binary(), map()}
Link to this callback

handle_close(binary, map)

View Source

Specs

handle_close(binary(), map()) :: {binary(), map()}
Link to this callback

handle_text(bitstring, map)

View Source

Specs

handle_text(bitstring(), map()) :: {binary(), map()}