// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
using System.Threading.Tasks;
namespace Microsoft.AspNet.SignalR
{
///
/// A communication channel for a and its connections.
///
public interface IConnection
{
///
/// The main signal for this connection. This is the main signalr for a .
///
string DefaultSignal { get; }
///
/// Sends a message to connections subscribed to the signal.
///
/// The message to send.
/// A task that returns when the message has be sent.
Task Send(ConnectionMessage message);
}
}