Permalink
Browse files

Updated sample to use reconnect event.

  • Loading branch information...
1 parent 26fc6da commit b247a308c80f45b9cdb0c1f8d66d6f299522a0ce @davidfowl davidfowl committed Feb 5, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 SignalR.Client.Samples/Program.cs
@@ -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);

0 comments on commit b247a30

Please sign in to comment.