class Riddl::Utils::Notifications::Producer::WS

Public Instance Methods

onclose() click to toggle source
# File lib/ruby/riddl/utils/notifications_producer.rb, line 325
def onclose
  @handler.key(@key).ws_close() unless @handler.nil?
end
onmessage(data) click to toggle source
# File lib/ruby/riddl/utils/notifications_producer.rb, line 321
def onmessage(data)
  @handler.key(@key).ws_message(data) unless @handler.nil?
end
onopen() click to toggle source
# 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