Table of Contents

Class WebSocketClosedException

Namespace
HeyBox.Net
Assembly
HeyBox.Net.Core.dll

表示一个由黑盒语音意外关闭 WebSocket 会话时引发的异常。

public class WebSocketClosedException : Exception, ISerializable
Inheritance
WebSocketClosedException
Implements
Inherited Members

Constructors

WebSocketClosedException(int?, string?)

使用黑盒语音发送的关闭代码及原因初始化一个 WebSocketClosedException 类的新实例。

public WebSocketClosedException(int? closeCode, string? reason = null)

Parameters

closeCode int?

由黑盒语音发送的关闭代码。

reason string

中断的原因。

Properties

CloseCode

获取由黑盒语音发送的关闭代码。

public int? CloseCode { get; }

Property Value

int?

Reason

获取中断的原因。

public string? Reason { get; }

Property Value

string