1.3.23 • Published 4 years ago
@proton/nestjs-uws v1.3.23
Installation
npm i nestjs-uwsUsage
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
4 years ago
1.3.22
4 years ago
1.3.21
4 years ago
1.3.20
4 years ago
1.3.19
4 years ago
1.3.18
4 years ago
1.3.17
4 years ago
1.3.16
4 years ago
1.3.15
4 years ago
1.3.14
4 years ago
1.3.13
4 years ago
1.3.12
4 years ago
1.3.11
4 years ago
1.3.10
4 years ago
1.3.9
4 years ago
1.3.8
4 years ago
1.3.7
4 years ago
1.3.6
4 years ago
1.3.5
4 years ago
1.3.4
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago