Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提两个小建议,个人在项目中使用中有些的不方便的地方 #194

Open
weichangyu opened this issue May 11, 2022 · 1 comment

Comments

@weichangyu
Copy link

weichangyu commented May 11, 2022

1.protobuf 消息号不能自定义。一般来说我们开发会定义一个消息段,比如1000-2000是用户模块。leaf 中要强行定义得自己修改源码。
2.可以把websocket的Header 可以提到 gate.Agent下面方便获取。
不知道这两问题是我操作没对还是框架本身是没有的,我都是通过修改了下源码实现的,就比较蛋疼。

@weichangyu weichangyu changed the title 提两个小建议,个人在项目中使用中预算的不方便的地方 提两个小建议,个人在项目中使用中有些的不方便的地方 May 11, 2022
@qiaoshuai2566348
Copy link

太过实诚, 就用一个协议号就行了, 然后自己维护自己的协议号

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants