arizona_nova_ws (arizona_nova v0.1.0)

View Source

Nova WebSocket handler for Arizona live connections.

Thin wrapper around arizona_socket that translates between Nova's WebSocket interface and Arizona's transport protocol. Delegates the upgrade-time handshake (parse _az_path/_az_reconnect, resolve the route, run middlewares) to arizona_ws:prepare/3.

Summary

Functions

init/1

-spec init(map()) -> {ok, map()}.

websocket_handle/2

-spec websocket_handle(term(), map()) -> {reply, term(), map()} | {ok, map()}.

websocket_info/2

-spec websocket_info(term(), map()) -> {reply, term(), map()} | {ok, map()}.

websocket_init/1

-spec websocket_init(map()) -> {reply, term(), map()} | {ok, map()}.