Skip to main content

subscribe-bookmark-resume

Importing the AMPS client library:

using AMPS.Client;
using AMPS.Client.Exceptions;

Constructing the command:

Command cmd = new Command(Message.Commands.Subscribe)
.setTopic(topic)

// Comma-delimited list of subscriptions to resume
// together
.setSubId(subIdList)

// Set "resume" (and any options needed to match original subscription)

.setOptions(Message.Options.Resume)
;

The command can now be used in execute or executeAsync.