Class: SseCable::Connection
- Inherits:
-
Object
- Object
- SseCable::Connection
- Defined in:
- lib/sse_cable/connection.rb
Instance Method Summary collapse
-
#initialize(env) ⇒ Connection
constructor
A new instance of Connection.
- #transmit(event) ⇒ Object
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 |