Starship.Reactor.Websocket (Starship v0.0.1) View Source

Functions for handling Websocket Requests in Starship.Reactor.

Link to this section Summary

Link to this section Functions

Link to this function

handle_binary(payload, config)

View Source

Specs

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

handle_close(payload, config)

View Source

Specs

handle_close(bitstring(), map()) :: {:close, map()}
Link to this function

handle_error(error, config)

View Source

Specs

handle_error(atom(), map()) :: {:close, map()}
Link to this function

handle_fragment(buffer, config, fragment_opcode)

View Source

Specs

handle_fragment(bitstring(), map(), Starship.Reactor.Websocket.Frame.opcode()) ::
  {:keepalive, map()}
Link to this function

handle_ping(payload, config)

View Source

Specs

handle_ping(bitstring(), map()) :: {:keepalive, map()}

Specs

handle_pong(map()) :: {:keepalive, map()}
Link to this function

handle_text(payload, config)

View Source

Specs

handle_text(bitstring(), map()) :: {:keepalive, map()}
Link to this function

handle_ws_frame(frame, config)

View Source

Specs

handle_ws_frame(binary(), map()) :: {Starship.Reactor.connection_state(), map()}
Link to this function

handle_ws_handshake(conn, config)

View Source

Specs