Class WebSocketBase
WebSocket base properties/methods.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class WebSocketBase
Methods
RaiseCloseComplete(WebSocketCloseArgs, WebSocketStatusCode, String)
Raises the close complete callback.
Declaration
protected void RaiseCloseComplete(WebSocketCloseArgs closeArgs, WebSocketStatusCode statusCode, string reason)
Parameters
Type | Name | Description |
---|---|---|
WebSocketCloseArgs | closeArgs | The close arguments. |
WebSocketStatusCode | statusCode | The status code. |
System.String | reason | The reason. |
RaiseOpenFailure(WebSocketOpenArgs, WebSocketStatusCode, Exception)
Raises the open failure callback.
Declaration
protected void RaiseOpenFailure(WebSocketOpenArgs openArgs, WebSocketStatusCode statusCode, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
WebSocketOpenArgs | openArgs | The open arguments. |
WebSocketStatusCode | statusCode | The status code. |
System.Exception | exception | The exception. |
RaiseOpenSuccess(WebSocketOpenArgs)
Raises the open success callback.
Declaration
protected void RaiseOpenSuccess(WebSocketOpenArgs openArgs)
Parameters
Type | Name | Description |
---|---|---|
WebSocketOpenArgs | openArgs | The open arguments. |
RaiseReceive(WebSocketOpenArgs, String, Byte[])
Raises the receive callback.
Declaration
protected void RaiseReceive(WebSocketOpenArgs openArgs, string textMessage, byte[] binaryMessage)
Parameters
Type | Name | Description |
---|---|---|
WebSocketOpenArgs | openArgs | The open arguments. |
System.String | textMessage | The text message. |
System.Byte[] | binaryMessage | The binary message. |
RaiseStreamFailure(WebSocketOpenArgs, WebSocketStatusCode, Exception)
Raises the stream failure callback.
Declaration
protected void RaiseStreamFailure(WebSocketOpenArgs openArgs, WebSocketStatusCode statusCode, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
WebSocketOpenArgs | openArgs | The open arguments. |
WebSocketStatusCode | statusCode | The status code. |
System.Exception | exception | The exception. |