Interface IDataChannel<TDataChannel>
Assembly: FM.LiveSwitch.dll
Syntax
public interface IDataChannel<TDataChannel>
Type Parameters
Name |
Description |
TDataChannel |
|
Properties
Id
Gets the data channel identifier.
Declaration
Property Value
Type |
Description |
System.String |
|
Info
Gets the data channel info.
Declaration
DataChannelInfo Info { get; }
Property Value
IsInternal
Gets a value indicating if this is an internal data channel.
Declaration
Property Value
Type |
Description |
System.Boolean |
|
Label
Declaration
Property Value
Type |
Description |
System.String |
|
OnReceive
Gets or sets the callback to execute when a message is received.
Declaration
Action1<DataChannelReceiveArgs> OnReceive { get; set; }
Property Value
Ordered
Gets a value indicating whether messages will be delivered in the order they are sent.
Declaration
Property Value
Type |
Description |
System.Boolean |
|
State
Declaration
DataChannelState State { get; }
Property Value
Subprotocol
Declaration
string Subprotocol { get; }
Property Value
Type |
Description |
System.String |
|
Methods
SendDataBytes(DataBuffer)
Declaration
Future<object> SendDataBytes(DataBuffer dataBytes)
Parameters
Returns
Type |
Description |
Future<System.Object> |
|
SendDataString(String)
Declaration
Future<object> SendDataString(string dataString)
Parameters
Type |
Name |
Description |
System.String |
dataString |
|
Returns
Type |
Description |
Future<System.Object> |
|
Events
OnStateChange
Raised when the state changes.
Declaration
event Action1<TDataChannel> OnStateChange
Event Type
Type |
Description |
Action1<TDataChannel> |
|