1.3.23 • Published 3 years ago
@proton/nestjs-uws v1.3.23
Installation
npm i nestjs-uws
Usage
import { UWebSocketAdapter } from 'nestjs-uws';
const app = await NestFactory.create(ApplicationModule);
app.useWebSocketAdapter(new UWebSocketAdapter({
port: 8099,
}));
You can't create SSL secure APP for now. You will need to use reverse-proxy to hide the websocket server behind.
Options
UWS Adapter options
Name | Type |
---|---|
port | number |
Packet structure
To use the NestJS WebSocket gateway decorators you should implement the base packet structure and send any messages from the client using the next structure
{
"event": String,
"data": any
}
1.3.23
3 years ago
1.3.22
3 years ago
1.3.21
3 years ago
1.3.20
3 years ago
1.3.19
3 years ago
1.3.18
3 years ago
1.3.17
3 years ago
1.3.16
3 years ago
1.3.15
3 years ago
1.3.14
3 years ago
1.3.13
3 years ago
1.3.12
3 years ago
1.3.11
3 years ago
1.3.10
3 years ago
1.3.9
3 years ago
1.3.8
3 years ago
1.3.7
3 years ago
1.3.6
3 years ago
1.3.5
3 years ago
1.3.4
3 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago