This repo contains the ably .NET client library.
For complete API documentation, see the ably documentation.
Visit https://www.ably.io/documentation for a complete API reference and more examples.
The client library is available as a nuget package.
You can install it from the Package Manager Console using this command
PM> Install-Package ably.io
All examples assume a client has been created as follows:
var realtime = new Ably.Realtime("<api key>");
Connecting and observing connection state changes
realtime.Connection.ConnectionStateChanged += (s, args) =>
{
if (args.CurrentState == ConnectionState.Connected)
{
// Do stuff
}
};
realtime.Connect();
Given:
var channel = realtime.Channels.Get("test");
Subscribe to all events:
channel.ChannelStateChanged += (s, args) =>
{
if (args.NewState == ChannelState.Attached)
{
// Do stuff
}
};
channel.Publish("greeting", "Hello World!");
Please visit http://support.ably.io/ for access to our knowledgebase and to ask for any assistance.
You can also view the community reported Github issues.
To see what has changed in recent versions of Bundler, see the CHANGELOG.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Ensure you have added suitable tests and the test suite is passing
- Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Copyright (c) 2015 Ably Real-time Ltd, Licensed under the Apache License, Version 2.0. Refer to LICENSE for the license terms.