Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GatewayServer ¶
func (*GatewayServer) HandleConnection ¶
func (c *GatewayServer) HandleConnection(conn conn.Connection) gate.ID
HandleConnection 当一个用户连接建立后, 由该方法创建 Client 实例 Client 并管理该连接, 返回该由连接创建客户端的标识 id 返回的标识 id 是一个临时 id, 后续连接认证后会改变
func (*GatewayServer) Run ¶
func (c *GatewayServer) Run() error
func (*GatewayServer) SetMessageHandler ¶
func (c *GatewayServer) SetMessageHandler(h gate.MessageHandler)
Click to show internal directories.
Click to hide internal directories.