Class: MessageBus::Client

Inherits:
Object
  • Object
show all
Includes:
Configuration, Connection, MessageHandler
Defined in:
lib/message_bus/client/version.rb,
lib/message_bus/client.rb

Defined Under Namespace

Modules: Configuration, Connection, MessageHandler

Constant Summary collapse

VERSION =
'0.1.0'

Constants included from MessageHandler

MessageHandler::CHUNK_SEPARATOR

Constants included from Connection

Connection::INITIALISED, Connection::PAUSED, Connection::STARTED, Connection::STOPPED, Connection::STOPPING

Instance Method Summary collapse

Methods included from MessageHandler

#subscribe, #unsubscribe

Methods included from Connection

#diagnostics, #pause, #paused?, #resume, #start, #stop, #stopped?

Methods included from Configuration

included

Constructor Details

#initialize(base_url) ⇒ Client

Returns a new instance of Client.



14
15
16
17
# File 'lib/message_bus/client.rb', line 14

def initialize(base_url)
  super
  @client_id = SecureRandom.uuid
end