Skip to content

Instantly share code, notes, and snippets.

@glennblock
Created February 14, 2012 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glennblock/1824681 to your computer and use it in GitHub Desktop.
Save glennblock/1824681 to your computer and use it in GitHub Desktop.
receive message
var serviceBusService = azure.createServiceBusService(),
topic = 'taskdiscussion',
subscription = 'client1';
serviceBusService.createSubscription(topic, subscription, function(error1){
if(!error1){
// Subscription created
serviceBusService.receiveSubscriptionMessage(topic, subscription, function(error2, serverMessage){
if(!error2){
// Process message
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment