class Rage::Configuration::Cable

def protocol=(protocol)

Other tags:
    Example: Use the built-in Raw WebSocket JSON protocol -
    Example: Use the built-in ActionCable V1 JSON protocol -

Parameters:
  • protocol (:actioncable_v1_json, :raw_websocket_json) -- the protocol symbol
def protocol=(protocol)
  @protocol = case protocol
  when Class
    protocol
  when :actioncable_v1_json
    Rage::Cable::Protocols::ActioncableV1Json
  when :raw_websocket_json
    Rage::Cable::Protocols::RawWebSocketJson
  else
    raise ArgumentError, "Unknown protocol. Supported values are `:actioncable_v1_json` and `:raw_websocket_json`."
  end
end