public void Dispose() { if (tradeWS != null) { tradeWS.destroy(); ConstMothed.ClearData(); tradeWS = null; } }
public bool StartTradeSocket(bool IsFirstConnection) { if (_titetemp == null) { return(true); } if (tradeWS == null) { ConstMothed.Init(); tradeWS = new TradeServerWSClient(); tradeWS.socketUrl = "ws://" + _titetemp.IP + ":" + _titetemp.IPPort; return(tradeWS.startServer(IsFirstConnection)); } return(true); }