private void OnClose(IWebSocketConnection socket)
{
try
{
// If socket is stored in connected sockets list, remove it
if (this.connectedSockets.ContainsKey(socket))
{
this.connectedSockets.Remove(socket);
}
System.Console.WriteLine("SUCCESS DISCONECT");
}
catch (Exception ex)
{
System.Console.WriteLine("FAILURE DISCONECT");
}
}