Class: TCP::Client
- Defined in:
- lib/client.rb
Overview
The Client class
Constant Summary collapse
- IdentiferTemplate =
'#<%<class>s:0x%<id>s>'.freeze
Instance Method Summary collapse
-
#initialize(options = {}, *handlers, &block) ⇒ Client
constructor
A new instance of Client.
- #to_s ⇒ Object (also: #inspect)
Methods included from Client::Listenable
#add_listener, #listeners, #notify, #remove_listener, #replace_listeners
Methods included from Client::InstanceMethods
#channel_unregistered, #client_has_shut_down, #close, #connect, #execute_command, #gets, #invoke_user_app, #message_received, #puts, #read_user_commands, #session, #shut_down_callbacks, #shutdown, #wait_until_channel_is_active, #when_client_has_shut_down
Methods included from Client::InitializationMethods
#bootstrap, #channel_initializer, #client_group, #configure_handlers, #init, #logging_handler
Constructor Details
#initialize(options = {}, *handlers, &block) ⇒ Client
Returns a new instance of Client.
439 440 441 442 443 444 |
# File 'lib/client.rb', line 439 def initialize( = {}, *handlers, &block) init(::Client.client_config.merge()) configure_handlers(*handlers, &block) connect session end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
448 449 450 |
# File 'lib/client.rb', line 448 def to_s format(IdentiferTemplate, class: self.class.name, id: object_id.to_s(16)) end |