Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/navono/go-websocket-proto
Use websocket based on protobuf
https://github.com/navono/go-websocket-proto
golang react typescript websocket-client websocket-server
Last synced: 2 days ago
JSON representation
Use websocket based on protobuf
- Host: GitHub
- URL: https://github.com/navono/go-websocket-proto
- Owner: navono
- License: mit
- Created: 2018-08-31T00:24:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T05:10:13.000Z (over 6 years ago)
- Last Synced: 2024-11-17T11:24:38.860Z (2 months ago)
- Topics: golang, react, typescript, websocket-client, websocket-server
- Language: JavaScript
- Size: 329 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-websocket-proto
使用基于`protobuf`的`Websocket`通信。# server
使用`Go`作为`Websocket`服务端,使用`gorilla`的`websocket`、`mux`和`handler`。# client
客户端包括基于`Go`的`go-client`和基于`js`的`react-client`;`go-client`使用`gorilla`的`websocket`库,`react-client`使用`websocket`库,# dev
## protobuf编译
- Go: 使用`protoc-gen-go`插件
- TS: 使用`protoc-gen-ts`插件(包名为:`ts-protoc-gen`)## protoc
确保安装了`protoc`以及相应的`include`。使用`protogen.bat`脚本编译。