Class: SseCable::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/sse_cable/connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Connection

Returns a new instance of Connection.



5
6
7
# File 'lib/sse_cable/connection.rb', line 5

def initialize(env)
  # Initialize connection with environment
end

Instance Method Details

#transmit(event) ⇒ Object



9
10
11
# File 'lib/sse_cable/connection.rb', line 9

def transmit(event)
  # Transmit event data to the client
end