WebSocketReceiveResult Constructor
Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9083)
WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)
Creates a new instance of WebSocketReceiveResult.
Declaration
public WebSocketReceiveResult(int count, WebSocketMessageType messageType, bool endOfMessage)
Parameters
Type | Name | Description |
---|---|---|
Int32 | count | Number of bytes in the received fragment. |
WebSocketMessageType | messageType | Type of the received fragment. |
Boolean | endOfMessage | Indicates whether this is the last fragment of the message. |
WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean, Nullable<WebSocketCloseStatus>, String)
Creates a new instance of WebSocketReceiveResult.
Declaration
public WebSocketReceiveResult(int count, WebSocketMessageType messageType, bool endOfMessage, WebSocketCloseStatus? closeStatus, string closeStatusDescription)
Parameters
Type | Name | Description |
---|---|---|
Int32 | count | Number of bytes in the received fragment. |
WebSocketMessageType | messageType | Type of the received fragment. |
Boolean | endOfMessage | Indicates whether this is the last fragment of the message. |
Nullable<WebSocketCloseStatus> | closeStatus | Close status (only for closure messages). |
String | closeStatusDescription | Close status description (only for closure messages). |