Highly popular SDKs (including coveted IoT based SDK), use of industry standard protocols like MQTT and Web Socket, and cross-platform messaging communication support for all SDKs.
Our robust, real-time SDKs make it simple for developers and digital agencies to make winning apps. Check out our SDKs documentation and tutorials.
<!-- Publish simple message to YourChannel -->
<script type="text/javascript">
PublishMessage({
ChannelName: 'YourChannel',
Message: 'This is Yalgaar Pub/Sub Example',
Callback: function (acknowledgment) {
}
});
</script>
<!-- Subscribe to YourChannel -->
<script type="text/javascript">
SubscribeMessage({
ChannelName: 'YourChannel',
Callback: function (message, channel, acknowledgement) {
// Shows alert when message receive
alert(message + " on channel " + channel);
}
});
</script>
//Publish simple message to YourChannel
yalgaar.Publish("YourChannel", "This is Yalgaar Pub/Sub Example");
//Subscribe to YourChannel
yalgaar.Subscribe("YourChannel", SubscribeReturnMessage, SubErrorMessage);
//shows message box when message subscribe
public void SubscribeReturnMessage(string Channel, string message)
{
MessageBox.Show(Message);
}
//shows message box when Error occur
private void SubErrorMessage(string Message)
{
MessageBox.Show(Message);
}
//Publish simple message to YourChannel
yalgaar.publish("YourChannel", "This is Yalgaar Pub/Sub Example", publishCallback);
//Subscribe to YourChannel
yalgaar.subscribe("YourChannel", subscriptionCallback, null);
//print when message subscribe
public void subscriptionCallback(string message)
{
System.out.println(message);
}
//Publish message to YourChannel
[objYalgaarClient publishWithChannel:@"YourChannel" Message:@"This is Yalgaar Pub/Sub Example" Error:&error];
//Subscribe to YourChannel
[objYalgaarClient subscribeWithChannel:@”YourChannel” Error:&error];
//called when receive data
(void) dataReceivedForSubscription:(NSString *)data OnChannels:(NSArray *)Channels{
NSLog(@"Data received: %@", data);
}
For more languages,
check out Yalgaar SDK & Documentation page
SDK & Documentation