AmqpClient provides a socket-based ActionScript client API to communicate with any AMQP 0.9x server, such as Apache QPid.
public function AmqpClient()
public function connect(url:String, virtualHost:String, credentials:Object, callback:Function = null):void
Connects to the AMQP Broker at the given URL with given credentials
Parameters
| url:String — url Location of the AMQP Broker or Server
|
|
| virtualHost:String — virtualHost Name of the virtual host
|
|
| credentials:Object — credentials Login credentials or Key
|
|
| callback:Function (default = null ) — callback Method to be called on success
|
public function disconnect():void
Disconnect from the remote AMQP server
public function getReadyState():Number
Returns
public function openChannel(callback:Function = null):AmqpChannel
Opens an AMQP Channel in the client
Parameters
| callback:Function (default = null ) — callback Method/function to be called on success
|
Returns