Slide 25
Slide 25 text
@MarcDuiker 25
var ablyClient = new AblyRealtime(ABLY_API_KEY);
var channel = ablyClient.Channels.Get(CHANNEL_NAME);
channel.Subscribe(“chat-message”, message =>
{
...
});
await channel.PublishAsync(
“chat-message",
new { user = "Marc“, message = "Hi there!"
});
ablyClient.Connection.On(ConnectionEvent.Connected,
args => {
...
});