My Project
Loading...
Searching...
No Matches
Properties | List of all members
WebSocketSharp.MessageEventArgs Class Reference

Represents the event data for the WebSocket.OnMessage event. More...

Inheritance diagram for WebSocketSharp.MessageEventArgs:

Properties

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.
 

Detailed Description

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.

Property Documentation

◆ 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.


The documentation for this class was generated from the following file: