Class: CPEE::Frames::SSE_Handler

Inherits:
Riddl::SSEImplementation
  • Object
show all
Defined in:
lib/cpee-frames/implementation.rb

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#oncloseObject



441
442
443
444
445
# File 'lib/cpee-frames/implementation.rb', line 441

def onclose
  signals = @a[0]
  signals.remove self
  nil
end

#onopenObject

{{{



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