Class: SseCable::Middleware
- Inherits:
-
Object
- Object
- SseCable::Middleware
- Defined in:
- lib/sse_cable/middleware.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
5 6 7 |
# File 'lib/sse_cable/middleware.rb', line 5 def initialize(app) # Initialize middleware with app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 |
# File 'lib/sse_cable/middleware.rb', line 9 def call(env) # Handle SSE requests in middleware end |