Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 935 Bytes

File metadata and controls

26 lines (17 loc) · 935 Bytes

SignalR Client for .NET 2.0

Build status

Client for SignalR which supports protocol 1.2 targeting .NET 2.0. The library can be easily compiled into Unity3D projects.

Client and server samples located under demo folder. Client's API is the same as for the standard/original SignalR client library:

// setup proxy
HubConnection connection = new HubConnection("http://localhost:58438/");
IHubProxy proxy = connection.CreateProxy("TestHub");

// subscribe to event
proxy.Subscribe("ClientPing").Data += data =>
{
  JToken data = data[0] as JToken;
  Console.WriteLine("Received push from server: [{0}]}", data["message"].ToString());
};

// start connection
connection.Start();