SkyWay Unity SDK
公式APIリファレンス
読み取り中…
検索中…
一致する文字列を見つけられません
WebSocketSharp.CloseEventArgs クラス

Represents the event data for the WebSocket.OnClose event. [詳解]

プロパティ

ushort Code [get]
 Gets the status code for the connection close.
 
string Reason [get]
 Gets the reason for the connection close.
 
bool WasClean [get]
 Gets a value indicating whether the connection has been closed cleanly.
 

詳解

Represents the event data for the WebSocket.OnClose event.

The close event occurs when the WebSocket connection has been closed.

If you would like to get the reason for the connection close, you should access the Code or Reason property.

プロパティ詳解

◆ Code

ushort WebSocketSharp.CloseEventArgs.Code
get

Gets the status code for the connection close.

A ushort that represents the status code for the connection close.

1005 (no status) if not present.

◆ Reason

string WebSocketSharp.CloseEventArgs.Reason
get

Gets the reason for the connection close.

A string that represents the reason for the connection close.

An empty string if not present.

◆ WasClean

bool WebSocketSharp.CloseEventArgs.WasClean
get

Gets a value indicating whether the connection has been closed cleanly.

true if the connection has been closed cleanly; otherwise, false.


このクラス詳解は次のファイルから抽出されました: