receipt method

void receipt (String receipt, void onReceipt(String receipt))

Adds a listener called when the RECEIPT frame of the given receipt-id

  • is received.
  • You can register any number of listeners as long as id is different.
    • receipt - specifies the receipt. It must match the receipt header
  • of the frame sent to the server.

Implementation

void receipt(String receipt, void onReceipt(String receipt));