此组件只能挂载在HttpService中
[PluginOptionAttribute(Singleton = true)]
public sealed class WebSocketFeature : PluginBase
<PluginOptionAttribute(Singleton := true)>
Public NotInheritable Class WebSocketFeature
Inherits PluginBase
[<SealedAttribute>]
[<PluginOptionAttribute(Singleton = true)>]
type WebSocketFeature =
class
inherit PluginBase
end
WebSocketFeature | WebSocketFeature |
AutoClose | 是否默认处理Close报文。 |
AutoPong | 当收到ping报文时,是否自动回应pong。 |
DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
PluginManager |
插件管理器
(继承自 PluginBase。) |
VerifyConnection | 验证连接 |
WSUrl |
用于WebSocket连接的路径,默认为“/ws”
如果设置为null或空,则意味着所有的连接都将解释为WS |
Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
NoAutoClose | 不处理Close报文。 |
SetVerifyConnection(FuncIHttpSessionClient, HttpContext, Boolean) | 验证连接 |
SetVerifyConnection(FuncIHttpSessionClient, HttpContext, TaskBoolean) | 验证连接 |
SetWSUrl |
用于WebSocket连接的路径,默认为“/ws”
如果设置为null或空,则意味着所有的连接都将解释为WS |
ToString | Returns a string that represents the current object. (继承自 Object。) |
UseAutoPong | 当收到ping报文时,自动回应pong。 |
AutoCloseProperty | 自动响应Close报文 |
AutoPongProperty | 自动响应Ping报文 |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |