
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
socket.io-servicebus
Advanced tools
This project provides a Node.js package that lets you use Windows Azure Service Bus as a back-end communications channel for socket.io applications.
To get the source code of the SDK via git just type:
git clone https://github.com/WindowsAzure/socket.io-servicebus
cd ./socket.io-servicebus
You can install the azure npm package directly.
npm install socket.io-servicebus
First, set up your Service Bus namespace. Create a topic to use for communications, and one subscription per socket.io server instance. These can be created either via the Windows Azure portal or programmatically using the Windows Azure SDK for Node.
Then, configure socket.io to use the Service Bus Store:
var sio = require('socket.io');
var SbStore = require('socket.io-servicebus');
var io = sio.listen(server);
io.configure(function () {
io.set('store', new SbStore({
topic: topicName,
subscription: subscriptionName,
connectionString: connectionString
}));
});
The connection string can either be retrieved from the portal, or using our powershell / x-plat CLI tools. From here, communications to and from the server will get routed over Service Bus.
The current version (0.0.1) only routes messages; client connection state is stored in memory in the server instance. Clients need to consistently connect to the same server instance to avoid losing their session state.
Be sure to check out the Windows Azure Developer Forums on Stack Overflow if you have trouble with the provided code.
If you would like to become an active contributor to this project please follow the instructions provided in Windows Azure Projects Contribution Guidelines.
If you encounter any bugs with the library please file an issue in the Issues section of the project.
For documentation on how to host Node.js applications on Windows Azure, please see the Windows Azure Node.js Developer Center.
For documentation on the Azure cross platform CLI tool for Mac and Linux, please see our readme [here] (http://github.com/windowsazure/azure-sdk-tools-xplat)
Check out our new IRC channel on freenode, node-azure.
FAQs
Socket.io store that connects to Windows Azure Service Bus
The npm package socket.io-servicebus receives a total of 1 weekly downloads. As such, socket.io-servicebus popularity was classified as not popular.
We found that socket.io-servicebus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.