Class: Ably::Realtime::Client::IncomingMessageDispatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/ably/realtime/client/incoming_message_dispatcher.rb

Overview

IncomingMessageDispatcher is a (private) class that is used to dispatch Models::ProtocolMessage that are received from Ably via the Ably::Realtime::Connection

Constant Summary collapse

ACTION =
Ably::Models::ProtocolMessage::ACTION

Instance Method Summary collapse

Constructor Details

#initialize(client, connection) ⇒ IncomingMessageDispatcher


8
9
10
11
12
13
# File 'lib/ably/realtime/client/incoming_message_dispatcher.rb', line 8

def initialize(client, connection)
  @client     = client
  @connection = connection

  subscribe_to_incoming_protocol_messages
end