Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuanyu90221/nest-ws-buffer


https://github.com/yuanyu90221/nest-ws-buffer

Last synced: 16 days ago
JSON representation

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
```