How to send message to client initiative in SuperWebSocketService after the connection is on?

Nov 30, 2011 at 5:20 AM

Hi,all,in SuperWebSocketService sample,when the connection is on,I want to send message to the client initiative, not as JsonCommandAssembly,muse

client send a command to the server and server send response.  Can show me a sample code? thx.

Coordinator
Nov 30, 2011 at 5:30 AM

The documentation of SuperSocket may helpful:

http://supersocket.codeplex.com/wikipage?title=Fetch%20required%20sessions%20from%20AppServer

Nov 30, 2011 at 6:02 AM

Thanks for your reply,but how to get the appServer such as in "Program.cs",and how to assagin a key to a session?

Coordinator
Nov 30, 2011 at 6:34 AM

SocketServerManager.GetServerByName("ServerB")

http://supersocket.codeplex.com/wikipage?title=Multiple%20server%20instances%2c%20and%20interactions%20among%20them
Coordinator
Nov 30, 2011 at 6:34 AM

Key will be assigned automatically when a connection is accepted.