Class: RocketChat::Realtime::Handlers::Ready

Inherits:
Base
  • Object
show all
Defined in:
lib/rocket_chat/realtime/handlers/ready.rb

Overview

Ready Message Handler

The DDP Subscribe success event

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from Base

#dispatcher, #message

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from RocketChat::Realtime::Handlers::Base

Instance Method Details

#processObject

See Also:

Since:

  • 0.1.0



15
16
17
18
19
# File 'lib/rocket_chat/realtime/handlers/ready.rb', line 15

def process
  message['subs']&.each do |id|
    AsyncTask.resolve(id)
  end
end