Class: Rage::Cable::WebSocketConnection Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/cable/cable.rb

Overview

This class is abstract.

Instance Method Summary collapse

Instance Method Details

#closeObject

Close the connection.



181
182
# File 'lib/rage/cable/cable.rb', line 181

module Protocols
end

#subscribe(name) ⇒ Object

Subscribe to a channel.

Parameters:

  • name (String)

    the channel name



181
182
# File 'lib/rage/cable/cable.rb', line 181

module Protocols
end

#unsubscribe(name) ⇒ Object

Unsubscribe from a channel.

Parameters:

  • name (String)

    the channel name



181
182
# File 'lib/rage/cable/cable.rb', line 181

module Protocols
end

#write(data) ⇒ Object

Write data to the connection.

Parameters:

  • data (String)

    the data to write



181
182
# File 'lib/rage/cable/cable.rb', line 181

module Protocols
end