Permalink
Browse files

Connecting to Azure Service Bus

  • Loading branch information...
robjoh committed Aug 17, 2014
1 parent d675e48 commit 32e56247885073a500fe78ce2a8ee2ae6fc7b314
Showing with 21 additions and 1 deletion.
  1. +4 −1 package.json
  2. +17 −0 server.js
View
@@ -19,5 +19,8 @@
"bugs": {
"url": "https://github.com/robjoh/azure-service-bus-nodejs/issues"
},
"homepage": "https://github.com/robjoh/azure-service-bus-nodejs"
"homepage": "https://github.com/robjoh/azure-service-bus-nodejs",
"dependencies": {
"azure": "~0.6.9-zumo"
}
}
View
@@ -0,0 +1,17 @@
"use strict"
var namespace = 'azure-service-bus-nodejs',
accessKey = '[Access key for this namespace]',
azure = require('azure');
var client = azure.createServiceBusService(namespace, accessKey);
client.listTopics(function(error, result, response) {
if (error) {
console.log(error);
return;
}
console.log(JSON.stringify(result, null, 3));
});

0 comments on commit 32e5624

Please sign in to comment.