# socket.io-amqp-adapter

> A socket.io adapter for AMQP. It allows broadcasting messages to multiple socket.io servers.

Latest version **1.0.0** (published 2023-01-30) · 0 weekly downloads

## Install

```sh
npm install socket.io-amqp-adapter
pnpm add socket.io-amqp-adapter
yarn add socket.io-amqp-adapter
bun add socket.io-amqp-adapter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-01-30 |
| First published | 2023-01-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 19.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | wawa27 |

## Links

- npm: https://www.npmjs.com/package/socket.io-amqp-adapter
- npm.io page: https://npm.io/package/socket.io-amqp-adapter

## Dependencies (5)

- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [debug](https://npm.io/package/debug.md) ^4.3.2
- [amqplib](https://npm.io/package/amqplib.md) ^0.10.3
- [socket.io](https://npm.io/package/socket.io.md) ^4.5.4
- [socket.io-adapter](https://npm.io/package/socket.io-adapter.md) ^2.4.0

## Recent versions

- 1.0.0 (latest) — 2023-01-30

## README

# socket.io-amqp-adater

A socket.io adapter for AMQP.
It allows broadcasting messages to multiple socket.io servers.

## Features

* Rooms
* High performance using AMQP Topics
* allRooms support 
* ~~Broadcast with ack~~

## Installation

```bash
$ npm install socket.io-amqp-adapter
```

## Usage

The adapter is used by passing it to the `io` instance.
The adapter's init method **must** be called in order to work.

```js
const io = new Server();

io.adapter(createAdapter({ amqpUrl: "amqp://localhost:5672" }));

io.on('connection', function(socket){
  socket.join('room1');
});

io.listen(3000);
```

---
_Source: https://npm.io/package/socket.io-amqp-adapter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
