Class: Queue
| Defined in: | src/modules/queue.coffee |
| Inherits: | Core.Stateful |
Overview
Provides a STOMP enabled RabbitMQ interface for publish and subscribe
Instance Method Summary
- # (void) connect() Connect to the server
- # (void) disconnect() Disconnect from the server
- # (void) subscribe(channel, fn) Subscribe to a channel
- # (void) unsubscribe(channel, fn) Unsubscribe from a channel
- # (void) publish(channel, payload) Publish a message to a channel
Constructor Details
#
(void)
constructor(user, password, host, port, protocol, vhost)
Construct a new Queue
Instance Method Details
#
(void)
connect()
Connect to the server
#
(void)
disconnect()
Disconnect from the server
#
(void)
subscribe(channel, fn)
Subscribe to a channel
#
(void)
unsubscribe(channel, fn)
Unsubscribe from a channel
#
(void)
publish(channel, payload)
Publish a message to a channel