public static void Stop() { PublishHelper.GetInstance().Dispose(); SubscribeHelper.GetInstance().Dispose(); PubSubServer.GetInstance().StopServer(); }
public static void Init() { PubSubServer.GetInstance().InitServer(CommonPort.PubServerPort, CommonPort.SubServerPort); SubscribeHelper.GetInstance(); PublishHelper.GetInstance(); }