protected void RemoveConnection(WebSocketServerConnection aConnection)
{
if (fConnections.IndexOf(aConnection) > -1)
{
if (BeforeRemoveConnection != null) BeforeRemoveConnection(this, aConnection);
LockConnections();
fConnections.Remove(aConnection);
UnlockConnections();
if (AfterRemoveConnection != null) AfterRemoveConnection(this, aConnection);
}
}