{"id":14978155,"url":"https://github.com/socketio/socket.io-aws-sqs-adapter","last_synced_at":"2025-10-19T11:30:48.086Z","repository":{"id":228816947,"uuid":"774986335","full_name":"socketio/socket.io-aws-sqs-adapter","owner":"socketio","description":"The Socket.IO adapter for AWS Simple Queue Service (SQS), allowing to broadcast events between several Socket.IO servers.","archived":false,"fork":false,"pushed_at":"2024-06-11T09:43:41.000Z","size":13,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T14:58:30.731Z","etag":null,"topics":["aws","aws-sqs","socket-io"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@socket.io/aws-sqs-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,"publiccode":null,"codemeta":null}},"created_at":"2024-03-20T15:01:33.000Z","updated_at":"2024-06-12T18:28:47.000Z","dependencies_parsed_at":"2024-11-15T03:36:26.626Z","dependency_job_id":"c49dc032-47be-459f-9ed5-36e0ae719422","html_url":"https://github.com/socketio/socket.io-aws-sqs-adapter","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"2865fc56adc94920059c019038ccb7ff2d9a8cdc"},"previous_names":["socketio/socket.io-aws-sqs-adapter"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-aws-sqs-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-aws-sqs-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-aws-sqs-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-aws-sqs-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socketio","download_url":"https://codeload.github.com/socketio/socket.io-aws-sqs-adapter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237116680,"owners_count":19258297,"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":["aws","aws-sqs","socket-io"],"created_at":"2024-09-24T13:56:57.473Z","updated_at":"2025-10-19T11:30:42.753Z","avatar_url":"https://github.com/socketio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Socket.IO AWS SQS adapter\n\nThe `@socket.io/aws-sqs-adapter` package allows broadcasting packets between multiple Socket.IO servers.\n\nUnlike the existing [`socket.io-sqs`](https://github.com/thinkalpha/socket.io-sqs) package, this package supports binary payloads and dynamic namespaces.\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/aws-sqs-adapter\n```\n\n## Usage\n\n```js\nimport { SNS } from \"@aws-sdk/client-sns\";\nimport { SQS } from \"@aws-sdk/client-sqs\";\nimport { Server } from \"socket.io\";\nimport { createAdapter } from \"@socket.io/aws-sqs-adapter\";\n\nconst snsClient = new SNS();\nconst sqsClient = new SQS();\n\nconst io = new Server({\n  adapter: createAdapter(snsClient, sqsClient)\n});\n\n// wait for the creation of the SQS queue\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 SNS topic.                                         | `socket.io`   |\n| `topicTags`         | The tags to apply to the new SNS topic.                            | `-`           |\n| `queuePrefix`       | The prefix of the SQS queue.                                       | `socket.io`   |\n| `queueTags`         | The tags to apply to the new SQS queue.                            | `-`           |\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-aws-sqs-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocketio%2Fsocket.io-aws-sqs-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocketio%2Fsocket.io-aws-sqs-adapter/lists"}