MQTT协议(四)——取消订阅
2018 年 02 月 02 日 •
评论
取消订阅用于客户端向服务端请求取消已经订阅的主题。客户端向服务端发送请求UNSUBSCRIBE,服务端需要回复UNSUBSCRIBE ACK。
取消订阅用于客户端向服务端请求取消已经订阅的主题。客户端向服务端发送请求UNSUBSCRIBE,服务端需要回复UNSUBSCRIBE ACK。
当客户端和服务端连接成功后,客户端需要向服务端订阅自己感兴趣的主题消息这样才能够收到消息。涉及到的报文有SUBSCRIBE,SUBSCRIBE ACK。
Apollo是一款由Apache研发的一款MQTT broker。借用官方的介绍:ActiveMQ Apollo is a faster, more reliable, easier to maintain messaging broker built from the foundations of the original ActiveMQ. It accomplishes this using a radically different threading and message dispatching architecture. Like ActiveMQ, Apollo is a multi-protocol broker and supports STOMP, AMQP, MQTT, Openwire, SSL, and WebSockets.