# Functions
New 创建Server.
NewRouterMgr 中间件执行顺序 globalMiddleware -> routerMiddleware.
No description provided by the author
Websocket 创建一个websocket server.
WithHeartbeatCheckInterval 服务端多长时间检测一次客户端心跳.
WithHeartbeatIdleTime 允许连接最大空闲时间,也就是允许连接最长多少时间不发送消息.
WithHooks hooks.
WithLogOutput 日志保存目录,默认按天保存在logs目录.
WithMaxBodyLength 配置包体部分最大长度.
WithNumEventLoop event-loop数量配置.
WithPacker 使用自定义的封包方式.
WithTCPKeepAlive 设置时间 TCP keepalive.
WithTls tls配置 Deprecated: 建议使用WithTLSConfig,将在后续版本中删除.
WithTLSConfig 自定义tls配置,更灵活,如果WithTls,和WithTLSConfig同时配置,则使用WithTLSConfig.
WithUDPPacketBufferLength 每次读取UDP数据报的长度.
# Structs
No description provided by the author
ConnectManager 所有连接都保存在这里.
No description provided by the author
Options 可选项配置,未配置时使用默认值.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author