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.



16
17
# File 'lib/rage/cable/cable.rb', line 16

def close
end

#subscribe(name) ⇒ Object

Subscribe to a channel.

Parameters:

  • name (String)

    the channel name



12
13
# File 'lib/rage/cable/cable.rb', line 12

def subscribe(name)
end

#write(data) ⇒ Object

Write data to the connection.

Parameters:

  • data (String)

    the data to write



6
7
# File 'lib/rage/cable/cable.rb', line 6

def write(data)
end