EasyConstant class
一些常量
本框架Websocket保留状态码:
- 4001-4100 服务端保留状态码范围
- 4101-4200 客户端保留状态码范围
- 4201-4999 可自定义的状态码范围
更多状态码资料参考: https://tools.ietf.org/html/rfc6455#section-7.4.2 和 https://github.com/websockets/ws/issues/715
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- clientCloseByDestroy → const EasyPacket
- 客户端主动关闭连接
- clientCloseByDone → const EasyPacket
- 客户端触发done事件
- clientCloseByError → const EasyPacket
- 客户端触发error事件
- clientCloseByRetry → const EasyPacket
- 客户端尝试重新连接
- clientCloseByUnknow → const EasyPacket
- 客户端未知关闭原因
- routeFinished → const String
- 由客户端完成请求的响应
- routeHeartick → const String
- 心跳包路由
- routeInitiate → const String
- 初始化路由
- routeInnerALL → const String
- 集群广播消息路由
- routeInnerGRP → const String
- 集群分组消息路由
- routeInnerP2P → const String
- 集群点对点消息路由
- routeInnerRMC → const String
- 集群远程方法路由
- routeResponse → const String
- 响应包路由
- serverCloseByKickoutError → const EasyPacket
- 服务端调用kickout函数关闭会话
- serverCloseByNewbindError → const EasyPacket
- 服务端有新会话绑定了同样的uid
- serverCloseByParseError → const EasyPacket
- 服务端解析数据失败
- serverCloseByRemoteNotRound → const EasyPacket
- 服务端没有对应的远程方法
- serverCloseByRepeatError → const EasyPacket
- 服务端校验重复id包未通过
- serverCloseByRouteNotFound → const EasyPacket
- 服务端没有对应的路由方法
- serverCloseBySignatureError → const EasyPacket
- 服务端检验数据签名未通过
- serverCloseBySocketError → const EasyPacket
- 服务端会话的套接字发生错误
- serverCloseByTimeoutError → const EasyPacket
- 服务端会话长时间未收到心跳包