Class: Riddl::Utils::Notifications::Producer::WS
- Inherits:
-
WebSocketImplementation
- Object
- WebSocketImplementation
- Riddl::Utils::Notifications::Producer::WS
- Defined in:
- lib/ruby/riddl/utils/notifications_producer.rb
Overview
}}}
Instance Method Summary collapse
Methods inherited from WebSocketImplementation
#close, #closed?, #initialize, #io, #io=, #onerror, #send
Constructor Details
This class inherits a constructor from Riddl::WebSocketImplementation
Instance Method Details
#onclose ⇒ Object
325 326 327 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 325 def onclose @handler.key(@key).ws_close() unless @handler.nil? end |
#onmessage(data) ⇒ Object
321 322 323 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 321 def (data) @handler.key(@key).(data) unless @handler.nil? end |
#onopen ⇒ Object
{{{
314 315 316 317 318 319 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 314 def onopen @backend = @a[0] @handler = @a[1] @key = @r[-2] @handler.key(@key).ws_open(self) unless @handler.nil? end |