hmq icon indicating copy to clipboard operation
hmq copied to clipboard

Question about shutting down broker gracefully

Open Andy320 opened this issue 7 years ago • 4 comments

@chowyu08 @MarcMagnin As the title, how to handle the broker shutdown/restart? The alive clients need to be notified one by one?

thanks

Andy320 avatar Feb 09 '18 08:02 Andy320

我也是同样问题,都考虑换框架了。

svija avatar Aug 17 '18 02:08 svija

@svija 你现在还在使用这个框架吗?go写的mqtt框架 我并没有找到比较全而且好的

zhengchengbin610 avatar Apr 16 '19 09:04 zhengchengbin610

I'd really like to see a broker.Stop() method in addition to the currently-existing broker.Start() method. It's easy to implement and I volunteer to do the work....if only I can get contributor access to this repo. My need stems from the fact I'm using hmq for testing and linking it directly into xxx_test.go files, though I can work around the lack of a broker.Stop() by starting the broker only once per test run via a TestMain()

pinchpe avatar Sep 27 '19 00:09 pinchpe

Thanks for the interest you have into this project. [email protected] will be able to provide a contributor access, please get in touch with him.

MarcMagnin avatar Sep 27 '19 08:09 MarcMagnin