Skip to content

Commit

Permalink
Expose 'Connection' class
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 10, 2010
1 parent 3618d4d commit 45afe3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,9 @@ An example of connecting to a server and listening on a queue.

## Connection

`new amqp.Connection()` Instantiates a new connection. Use
`connection.connect()` to connect to a server.

`amqp.createConnection()` returns an instance of `amqp.Connection`, which is
a subclass of `net.Stream`. All the event and methods which work on
`net.Stream` can also be used on an `amqp.Connection` instace. (E.G. the
Expand Down
1 change: 1 addition & 0 deletions amqp.js
Expand Up @@ -740,6 +740,7 @@ function Connection (options) {
});
}
sys.inherits(Connection, net.Stream);
exports.Connection = Connection;


var defaultOptions = { host: 'localhost'
Expand Down

0 comments on commit 45afe3d

Please sign in to comment.