Extracted at 2006-05-11.
pike.ida.liu.se
[Top]
Public
Public.Protocols
Public.Protocols.Stomp
Public.Protocols.Stomp.Client

Method Public.Protocols.Stomp.Client()->subscribe()


Method subscribe

int subscribe(string destination, function callback, int(0..1)|void acknowledge, int(0..1)|void receipt)

Description

subscribe to a topic or queue

Parameter callback

a function that takes receives a Frame object for each message delivered and returns one to acknowledge or zero to refuse receipt of the message

Parameter acknowledge

should we require recieved messages to be acknowledged?

Parameter receipt

should we await confirmation of this command from the server?