void OnError (SocketIOEvent e) {
#if UNITY_EDITOR
Debug.LogWarning("[SocketIO] Error received: " + e.data.str);
#endif
if (e.data.str.Equals("An exception has occurred while connecting.")) {
SendSocketDisconnectMessage();
// SendUpdateConnectionMessage (false);
}
else if (e.data.str.Equals("An exception has occurred while receiving a message.")) {
SendSocketDisconnectMessage();
}
}