public static TradeServerWSClient Instance() { if (_instance == null) { _instance = new TradeServerWSClient(); } return(_instance); }
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); }
public ScoketManager() { tradeWS = TradeServerWSClient.Instance(); }