DataSource.NET
7.1.19.30632-febdd66
|
Public Member Functions | |
void | ChannelClose (IJsonChannel jsonChannel) |
bool | ChannelOpen (IJsonChannel jsonChannel) |
void | MessageReceived (IJsonChannel jsonChannel, IJsonChannelMessage jsonMessage) |
Interface that must be implemented in order to perform bi-directional communication with a StreamLink client.
The following example shows a basic implementation of JsonChannelListener
that accepts all jsonChannels within a namespace and echoes incoming messages back to the StreamLink client:
void Caplin.DataSource.Channel.IJsonChannelListener.ChannelClose | ( | IJsonChannel | jsonChannel | ) |
Callback that informs the JsonChannelListener
that a StreamLink client wishes to close a channel.
jsonChannel | The channel to be closed. |
bool Caplin.DataSource.Channel.IJsonChannelListener.ChannelOpen | ( | IJsonChannel | jsonChannel | ) |
Callback that informs the JsonChannelListener
that a StreamLink client wishes to open a channel.
jsonChannel | The channel to be opened. |
void Caplin.DataSource.Channel.IJsonChannelListener.MessageReceived | ( | IJsonChannel | jsonChannel, |
IJsonChannelMessage | jsonMessage | ||
) |
Callback that informs the JsonChannelListener
that a StreamLink client has sent a message to the DataSource via a specified channel.
jsonChannel | The channel receiving the message. |
jsonMessage | A message containing fields that have been sent to the DataSource by the StreamLink client. |