@betsys-nestjs/websocket-redis-io-adapter
v2.0.0
Published
Library for a redis-io websocket adapter
Downloads
23
Maintainers
Keywords
Readme
RedisIoAdapter library
A base for RedisIoAdapter
Dependencies
| Package | Version | | -------------------------- | --------------- | | ioredis | ^5.3.0 | | @socket.io/redis-adapter | ^8.0.1 | | @nestjs/platform-socket.io | ^9.2.1 | | socket.io | ^4.5.4 | | @nestjs/common | ^10.0.0 | | @nestjs/core | ^10.0.0 | | @betsys-nestjs/redis | ^4.0.0 | | @nestjs/terminus | ^10.0.0 | | reflect-metadata | >=0.1.13 <0.2.0 | | rxjs | >=7.8.0 <8.0.0 | | socket.io-adapter | ^2.5.2 |
Usage
import { RedisIoAdapter } from '@betsys/websocket-redis-io-adapter';
app.useWebSocketAdapter(new RedisIoAdapter(app, redisConfig()));
- Simply add this line to application bootstrap() method.