Team XSockets.NET

Client Pool

The client pool lets you call methods on the server. The client pool is made for sending only and is often used in legacy applications to boost them to real-time with 2 lines of code.

For example, if you have a half-duplex service such as a WCF you can boost it to real-time by just doing this.

var conn = ClientPool.GetInstance("ws://localhost:4502","http://localhost");
conn.Send("Hello from client pool","chatmessage","chat");

Above we send the text Hello from client pool to the method ChatMessage on the controller Chat. As always you can send any object that can be serialized.

results matching ""

    No results matching ""