In response to your comment:
Understood but without creating an instance , you wont be able to do anything with regard to service bus operations - these include being able to read messages from the subscription no ?
So in theory your code should look something like this :
var serviceBusConnectionString = "Endpoint=sb://somens.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=mykey";
var retryOperations = new azure.ExponentialRetryPolicyFilter();
var serviceBusService = azure.createServiceBusService(serviceBusConnectionString).withFilter(retryOperations);
serviceBusService.receiveSubscriptionMessage('MyTopic', 'LowMessages', function(error, receivedMessage){
if(!error){
// Message received and deleted
console.log(receivedMessage);
}
});
More info here
Original:
Check this one out as well followup stackoverflow answer , Combined these two links should sort you out ?
Thanks