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

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

プロパティ

string Data [get]
 Gets the message data as a string.
 
bool IsBinary [get]
 Gets a value indicating whether the message type is binary.
 
bool IsPing [get]
 Gets a value indicating whether the message type is ping.
 
bool IsText [get]
 Gets a value indicating whether the message type is text.
 
byte[] RawData [get]
 Gets the message data as an array of byte.
 

詳解

Represents the event data for the WebSocket.OnMessage event.

The message event occurs when the WebSocket interface receives a message or a ping if the WebSocket.EmitOnPing property is set to true.

If you would like to get the message data, you should access the Data or RawData property.

プロパティ詳解

◆ Data

string WebSocketSharp.MessageEventArgs.Data
get

Gets the message data as a string.

A string that represents the message data if the message type is text or ping.

null if the message type is binary or the message data could not be UTF-8-decoded.

◆ IsBinary

bool WebSocketSharp.MessageEventArgs.IsBinary
get

Gets a value indicating whether the message type is binary.

true if the message type is binary; otherwise, false.

◆ IsPing

bool WebSocketSharp.MessageEventArgs.IsPing
get

Gets a value indicating whether the message type is ping.

true if the message type is ping; otherwise, false.

◆ IsText

bool WebSocketSharp.MessageEventArgs.IsText
get

Gets a value indicating whether the message type is text.

true if the message type is text; otherwise, false.

◆ RawData

byte [] WebSocketSharp.MessageEventArgs.RawData
get

Gets the message data as an array of byte.

An array of byte that represents the message data.


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