echo_boy v0.6.1 EchoBoy.WebSocket

Link to this section Summary

Functions

Callback implementation for c::cowboy_websocket.init/2.

No matter why we terminate, remove all of this pids subscriptions

Send the payload back to the client for all other messages. Don't send a reply for other messages.

Format and forward elixir messages to client

Callback implementation for c::cowboy_websocket.websocket_init/1.

Link to this section Functions

Link to this function

init(req, state)

Callback implementation for c::cowboy_websocket.init/2.

Link to this function

terminate(reason, req, state)

No matter why we terminate, remove all of this pids subscriptions

Link to this function

websocket_handle(arg, state)

Send the payload back to the client for all other messages. Don't send a reply for other messages.

Link to this function

websocket_info(info, state)

Format and forward elixir messages to client

Link to this function

websocket_init(state)

Callback implementation for c::cowboy_websocket.websocket_init/1.