Class: CPEE::Frames::SSE_Handler
- Inherits:
-
Riddl::SSEImplementation
- Object
- Riddl::SSEImplementation
- CPEE::Frames::SSE_Handler
- Defined in:
- lib/cpee-frames/implementation.rb
Overview
}}}
Instance Method Summary collapse
Instance Method Details
#onclose ⇒ Object
441 442 443 444 445 |
# File 'lib/cpee-frames/implementation.rb', line 441 def onclose signals = @a[0] signals.remove self nil end |
#onopen ⇒ Object
{{{
434 435 436 437 438 439 |
# File 'lib/cpee-frames/implementation.rb', line 434 def onopen signals = @a[0] signals.add self send JSON.dump({ message: 'started' }) true end |