Class: CPEE::Frames::SSE
- Inherits:
-
Riddl::SSEImplementation
- Object
- Riddl::SSEImplementation
- CPEE::Frames::SSE
- Defined in:
- lib/cpee-frames/implementation.rb
Overview
}}}
Instance Method Summary collapse
Instance Method Details
#onclose ⇒ Object
426 427 428 429 430 |
# File 'lib/cpee-frames/implementation.rb', line 426 def onclose signals = @a[0] signals.remove self nil end |
#onopen ⇒ Object
{{{
419 420 421 422 423 424 |
# File 'lib/cpee-frames/implementation.rb', line 419 def onopen signals = @a[0] signals.add self send JSON.dump({ message: 'started' }) true end |