riverside v1.2.5 Riverside.Connection
Link to this section Summary
Functions
Callback implementation for c::cowboy_websocket.init/2
Callback implementation for c::cowboy_websocket.terminate/3
Callback implementation for c::cowboy_websocket.websocket_handle/2
Callback implementation for c::cowboy_websocket.websocket_info/2
Callback implementation for c::cowboy_websocket.websocket_init/1
Link to this section Types
Link to this type
shutdown_reason()
shutdown_reason()
shutdown_reason() :: :too_many_messages
shutdown_reason() :: :too_many_messages
Link to this type
t()
t()
t() :: %Riverside.Connection{
handler: module(),
handler_state: any(),
session: Riverside.Session.t(),
shutdown_reason: shutdown_reason() | nil
}
t() :: %Riverside.Connection{ handler: module(), handler_state: any(), session: Riverside.Session.t(), shutdown_reason: shutdown_reason() | nil }
Link to this section Functions
Link to this function
init(req, opts)
Callback implementation for c::cowboy_websocket.init/2
.
Link to this function
new(handler, user_id, session_id, peer, handler_state)
new(handler, user_id, session_id, peer, handler_state)
new(
handler :: module(),
user_id :: Riverside.Session.user_id(),
session_id :: Riverside.Session.session_id(),
peer :: Riverside.PeerAddress.t(),
handler_state :: any()
) :: t()
new( handler :: module(), user_id :: Riverside.Session.user_id(), session_id :: Riverside.Session.session_id(), peer :: Riverside.PeerAddress.t(), handler_state :: any() ) :: t()
Link to this function
terminate(reason, req, state)
Callback implementation for c::cowboy_websocket.terminate/3
.
Link to this function
websocket_handle(event, state)
Callback implementation for c::cowboy_websocket.websocket_handle/2
.
Link to this function
websocket_info(event, state)
Callback implementation for c::cowboy_websocket.websocket_info/2
.
Link to this function
websocket_init(state)
Callback implementation for c::cowboy_websocket.websocket_init/1
.