OrtcClientSubscribe Method Open Real Time Connectivity Application Programming Interface Help
Subscribes to a channel.

Namespace: Ibt.Ortc.Api.Extensibility
Assembly: Ibt.Ortc.Api.Extensibility (in Ibt.Ortc.Api.Extensibility.dll) Version: 2.1.14.0 (2.1.14)
Syntax

public virtual void Subscribe(
	string channel,
	bool subscribeOnReconnected,
	OnMessageDelegate onMessage
)

Parameters

channel
Type: SystemString
Channel name.
subscribeOnReconnected
Type: SystemBoolean
Subscribe to the specified channel on reconnect.
onMessage
Type: OnMessageDelegate
OnMessageDelegate callback.
Examples

ortcClient.Subscribe("channelName", true, OnMessageCallback);
private void OnMessageCallback(object sender, string channel, string message)
{
// Do something
}
See Also

Reference