Actioncable.SocketHandler (actioncable v0.1.2)

This module handles:

  • Socket initialization with actioncable protocol. (Switching protocol)
  • Message from client
  • Message to client This module DON'T handles token in url (like example.com/cable?token=aaa)

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 Functions

Link to this function

add_id(state, channel)

Link to this function

init(req, opts)

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

Link to this function

name_channel(channel)

Link to this function

search_subprotocol(list, req, opts)

Link to this function

subscription(message, state)

Link to this function

terminate(reason, req, state)

Callback implementation for c::cowboy_websocket.terminate/3.

Link to this function

unsubscribe_all(list, pid)

Link to this function

unsubscription(message, state)

Link to this function

websocket_handle(arg, state)

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

Link to this function

websocket_info(message, state)

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

Link to this function

websocket_init(req)

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