EGDL2 2.1
Loading...
Searching...
No Matches
WebSocketSharp.MessageEventArgs Class Reference

Contains the event data associated with a WebSocket.OnMessage event. More...

Inherits EventArgs.

Properties

string Data [get]
 Gets the received data as a string.
 
byte[] RawData [get]
 Gets the received data as an array of byte.
 
Opcode Type [get]
 Gets the type of the received data.
 

Detailed Description

Contains the event data associated with a WebSocket.OnMessage event.

A WebSocket.OnMessage event occurs when the WebSocket receives a text or binary data frame. If you want to get the received data, you access the MessageEventArgs.Data or MessageEventArgs.RawData property.

Property Documentation

◆ Data

string WebSocketSharp.MessageEventArgs.Data
get

Gets the received data as a string.

A string that contains the received data.

◆ RawData

byte [] WebSocketSharp.MessageEventArgs.RawData
get

Gets the received data as an array of byte.

An array of byte that contains the received data.

◆ Type

Opcode WebSocketSharp.MessageEventArgs.Type
get

Gets the type of the received data.

One of the Opcode values, indicates the type of the received data.


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