due icon indicating copy to clipboard operation
due copied to clipboard

A lightweight distributed game server framework developed based on Go language.

Results 11 due issues
Sort by recently updated
recently updated
newest added

supports return of custom message content such as heartbeat from the gate

现在如果要返回错误码给客户端似乎需要在每个pb message里面定义,是否可以在packet的head里面定一个1个bit(和心跳包类似),表示错误返回,里面带上code。这样可以在gate,或者任意一个node给客户端返回了。

作者您好,我在使用 Gate 组件时,从 WS 连接读取消息,偶尔会产生如下报错信息: ``` read message failed: 5 read tcp [10.0.4.3:3553](http://10.0.4.3:3553/)->[171.216.69.26:5632](http://171.216.69.26:5632/): read: connection reset by peer websocket upgrade error: websocket: the client is not using the websocket protocol:...

嗨。这是我在学习 due 的过程中发现的一些小问题(有一些可能并不是问题) 截图可能比较大,需要点开来查看,因为我想提供更完整的追踪线索。(🤔 我怎么不使用 github 的代码链接?因为我截图完了才想起这个功能更方便您查看对应的代码,下次一定) ## 1. cluster/node/context.go 中的 Context 注释应该是:获取上下文 ## 2. cluster/node/node.go 中的 setState,n.instance 的判断可以提前返回 修改前: 修改后: ```go if n.instance == nil { return } ......

server.NewServer() 用到了 xnet.ParseAddr() , 用到了随机端口。 我想问:如果我将项目打包成docker镜像,容器化运行时,如何映射容器与宿主机的端口?

你好,请问有没对于这个框架讨论的QQ或者微信群? 对这个项目挺有兴趣的

This file is in F:\due\transport\grpc, which is a nested module in the F:\due\go.mod module. To work on multiple modules at once, please use a go.work file. See https://github.com/golang/tools/blob/master/gopls/doc/workspace.md for more...

- 节点间RPC实现 - 节点动态负载均衡策略(网关根据节点状态,动态调配无状态路由消息的投递策略) - Kafka事件总线实现