Skip to content

Commit

Permalink
Updated sample to use reconnect event.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Feb 5, 2012
1 parent 26fc6da commit b247a30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SignalR.Client.Samples/Program.cs
Expand Up @@ -45,13 +45,18 @@ private static void RunDemoHub(HubConnection hubConnection)

private static void RunStreamingSample()
{
var connection = new Connection("http://localhost:40476/Streaming/streaming");
var connection = new Connection("http://localhost:40476/Raw/raw");

connection.Received += data =>
{
Console.WriteLine(data);
};

connection.Reconnected += () =>
{
Console.WriteLine("[{0}]: Connection restablished", DateTime.Now);
};

connection.Error += e =>
{
Console.WriteLine(e);
Expand Down

0 comments on commit b247a30

Please sign in to comment.