ProtoBuf.js WebSocket example
This example shows how to use binary websockets to transfer protocol buffers.
Instructions
- Set up dependencies:
npm install - Run:
node server.js - Open http://localhost:8080/ in a recent browser
| 名称 | 最后更新 |
最后提交
fa3e4a79
–
增加userId的判断,如果为'0'的时候,随机生成userId
历史
|
|---|---|---|
| .. | ||
| www | 正在载入提交数据... | |
| .npmignore | 正在载入提交数据... | |
| README.md | 正在载入提交数据... | |
| package.json | 正在载入提交数据... | |
| server.js | 正在载入提交数据... |
This example shows how to use binary websockets to transfer protocol buffers.
npm install
node server.js