{"id":14978147,"url":"https://github.com/socketio/socket.io-azure-service-bus-adapter","last_synced_at":"2025-10-19T11:30:43.503Z","repository":{"id":229245175,"uuid":"776078009","full_name":"socketio/socket.io-azure-service-bus-adapter","owner":"socketio","description":"The Socket.IO adapter for Azure Service Bus, allowing to broadcast events between several Socket.IO servers.","archived":false,"fork":false,"pushed_at":"2024-03-22T16:56:56.000Z","size":45,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-29T01:01:54.703Z","etag":null,"topics":["azure","azure-service-bus","socket-io"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@socket.io/azure-service-bus-adapter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/socketio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-22T16:28:45.000Z","updated_at":"2024-05-31T10:05:53.000Z","dependencies_parsed_at":"2024-03-23T00:55:31.706Z","dependency_job_id":"53862f71-9475-41ef-b3ca-c367a4d35a66","html_url":"https://github.com/socketio/socket.io-azure-service-bus-adapter","commit_stats":null,"previous_names":["socketio/socket.io-azure-service-bus-adapter"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-azure-service-bus-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-azure-service-bus-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-azure-service-bus-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-azure-service-bus-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socketio","download_url":"https://codeload.github.com/socketio/socket.io-azure-service-bus-adapter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869549,"owners_count":16555239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-service-bus","socket-io"],"created_at":"2024-09-24T13:56:56.404Z","updated_at":"2025-10-19T11:30:43.080Z","avatar_url":"https://github.com/socketio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Socket.IO Azure Service Bus adapter\n\nThe `@socket.io/azure-service-bus-adapter` package allows broadcasting packets between multiple Socket.IO servers.\n\n**Table of contents**\n\n- [Supported features](#supported-features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Options](#options)\n- [License](#license)\n\n## Supported features\n\n| Feature                         | `socket.io` version | Support                                        |\n|---------------------------------|---------------------|------------------------------------------------|\n| Socket management               | `4.0.0`             | :white_check_mark: YES (since version `0.1.0`) |\n| Inter-server communication      | `4.1.0`             | :white_check_mark: YES (since version `0.1.0`) |\n| Broadcast with acknowledgements | `4.5.0`             | :white_check_mark: YES (since version `0.1.0`) |\n| Connection state recovery       | `4.6.0`             | :x: NO                                         |\n\n## Installation\n\n```\nnpm install @socket.io/azure-service-bus-adapter\n```\n\n## Usage\n\n```js\nimport { ServiceBusClient, ServiceBusAdministrationClient } from \"@azure/service-bus\";\nimport { Server } from \"socket.io\";\nimport { createAdapter } from \"@socket.io/azure-service-bus-adapter\";\n\nconst connectionString = \"Endpoint=...\";\n\nconst serviceBusClient = new ServiceBusClient(connectionString);\nconst serviceBusAdminClient = new ServiceBusAdministrationClient(connectionString);\n\nconst io = new Server({\n  adapter: createAdapter(serviceBusClient, serviceBusAdminClient)\n});\n\n// wait for the creation of the pub/sub subscription\nawait io.of(\"/\").adapter.init();\n\nio.listen(3000);\n```\n\n## Options\n\n| Name                 | Description                                                                                            | Default value |\n|----------------------|--------------------------------------------------------------------------------------------------------|---------------|\n| `topicName`          | The name of the topic.                                                                                 | `socket.io`   |\n| `topicOptions`       | The options used to create the topic.                                                                  | `-`           |\n| `subscriptionPrefix` | The prefix of the subscription (one subscription will be created per Socket.IO server in the cluster). | `socket.io`   |\n| `receiverOptions`    | The options used to create the subscription.                                                           | `-`           |\n| `topicOptions`       | The options used to create the receiver.                                                               | `-`           |\n| `heartbeatInterval`  | The number of ms between two heartbeats.                                                               | `5_000`       |\n| `heartbeatTimeout`   | The number of ms without heartbeat before we consider a node down.                                     | `10_000`      |\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocketio%2Fsocket.io-azure-service-bus-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocketio%2Fsocket.io-azure-service-bus-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocketio%2Fsocket.io-azure-service-bus-adapter/lists"}