Advertisement
codeplanner

XSockets Controlled Close On Server

Mar 20th, 2013
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using XSockets.Core.XSocket;
  2. using XSockets.Core.XSocket.Helpers;
  3.  
  4. namespace XSockets.Controllers
  5. {
  6.     public class Test : XSocketController
  7.     {
  8.         /// <summary>
  9.         /// An example of howto close a XSockets connection if you need to clean up stuff.
  10.         /// This might also be called from a client...see http://pastebin.com/vcS3iHzA
  11.         /// </summary>
  12.         public void Terminate()
  13.         {
  14.             //Do cleanup
  15.  
  16.             //Disconnect
  17.             this.Disconnected();
  18.         }
  19.     }  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement