/// <summary>
 /// Raises the OnDisconnect event
 /// </summary>
 /// <param name="args">OnDisconnect event arguments</param>
 protected void RaiseOnDisconnect(ConnectionArgs args)
 {
     if (OnDisconnect != null) OnDisconnect(this, args);
 }
 /// <summary>
 /// Raises the OnConnect event and sets WaitForConnection blocker
 /// </summary>
 /// <param name="args">OnConnect event arguments</param>
 protected void RaiseOnConnect(ConnectionArgs args)
 {
     if (OnConnect != null) OnConnect(this, args);
     connectWaiter.Set();
 }