Method: Stomp::Connection#initialize
- Defined in:
- lib/stomp/connection.rb
#initialize(login = '', passcode = '', host = 'localhost', port = 61613, reliable = false, reconnect_delay = 5, connect_headers = {}) ⇒ Connection
Stomp URL :
A Stomp URL must begin with 'stomp://' and can be in one of the following forms:
stomp://host:port
stomp://host.domain.tld:port
stomp://user:pass@host:port
stomp://user:[email protected]:port
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/stomp/connection.rb', line 28 def initialize(login = '', passcode = '', host = 'localhost', port = 61613, reliable = false, reconnect_delay = 5, connect_headers = {}) @host = host @port = port @login = login @passcode = passcode @transmit_semaphore = Mutex.new @read_semaphore = Mutex.new @socket_semaphore = Mutex.new @reliable = reliable @reconnect_delay = reconnect_delay @connect_headers = connect_headers @closed = false @subscriptions = {} @failure = nil socket end |