Class: URI::STOMP

Inherits:
Generic
  • Object
show all
Defined in:
lib/stomper/uris.rb

Overview

This class encapsulates a URI with a schema of “stomp”. For example, “stomp://host.domain.tld”

Direct Known Subclasses

STOMP_SSL

Constant Summary collapse

DEFAULT_PORT =
Note:

The Stomp specification does not define any default ports, this port has been chosen because it is fairly common amongst brokers that provide a Stomp interface, such as Apache’s ActiveMQ.

Specifies the default port of a standard Stomp connection. Any URI without explicit port specified will use this value instead.

61613

Instance Method Summary collapse

Instance Method Details

#create_socket(*args) ⇒ Object

Creates a TCP socket connection to the host and port specified by this URI.

Returns:

  • Stomper::Sockets::TCP



19
20
21
# File 'lib/stomper/uris.rb', line 19

def create_socket(*args)
  ::Stomper::Sockets::TCP.new(self.host||'localhost', self.port)
end