Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Const-me/ably-dotnet

 
 

Repository files navigation

ably-dotnet

Build Status

This repo contains the ably .NET client library.

For complete API documentation, see the ably documentation.

Documentation

Visit https://www.ably.io/documentation for a complete API reference and more examples.

Installation

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

Using the Realtime API

Introduction

All examples assume a client has been created as follows:

var realtime = new Ably.Realtime("<api key>");

Connection

Connecting and observing connection state changes

realtime.Connection.ConnectionStateChanged += (s, args) =>
{
    if (args.CurrentState == ConnectionState.Connected)
    {
        // Do stuff
    }
};
realtime.Connect();

Subscribing to a channel

Given:

var channel = realtime.Channels.Get("test");

Subscribe to all events:

channel.ChannelStateChanged += (s, args) =>
{
    if (args.NewState == ChannelState.Attached)
    {
        // Do stuff
    }
};

Publishing to a channel

channel.Publish("greeting", "Hello World!");

Using the REST API

Support, feedback and troubleshooting

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.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Ensure you have added suitable tests and the test suite is passing
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

License

Copyright (c) 2015 Ably Real-time Ltd, Licensed under the Apache License, Version 2.0. Refer to LICENSE for the license terms.

About

.NET client for Ably real-time messaging service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.6%
  • PowerShell 1.3%
  • Smalltalk 0.1%