Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanyu90221/nest-ws-buffer
https://github.com/yuanyu90221/nest-ws-buffer
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuanyu90221/nest-ws-buffer
- Owner: yuanyu90221
- Created: 2023-06-12T16:48:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-12T16:48:42.000Z (over 1 year ago)
- Last Synced: 2024-04-21T14:00:46.574Z (9 months ago)
- Language: TypeScript
- Size: 94.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nest-ws-buffer
This repository is a example for websocket adapter for use protobuf
## pre install
```shell
yarn add @nestjs/websockets ws
yarn add -D ts-proto
```## use protoc to generate bundle.pb.js
```shell
protoc --plugin=node_modules/ts-proto/protoc-gen-ts_proto src/proto/*.proto -I=src --ts_proto_out=src/pb --ts_proto_opt=fileSuffix=.pb
```