Created
February 14, 2012 07:43
-
-
Save glennblock/1824681 to your computer and use it in GitHub Desktop.
receive message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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