Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking Change: Add new hooks for client and session lifecircle #3138

merged 2 commits into from Dec 27, 2019


Copy link

emqplus commented Dec 27, 2019

Hooks for Client

  • client.connect: MQTT CONNECT Packet Received
  • client.connack: MQTT CONNACK Packet Sent
  • client.connected: The MQTT Client is connected
  • client.disconnected: The MQTT Client is disconnected
  • client.authenticate: Authenticate the MQTT Client
  • client.check_acl: Check Pub/Sub ACL
  • client.subscribe: MQTT SUBSCRIBE Packet Received
  • client.unsubscribe: MQTT UNSUBSCRIBE Packet Received

Hooks for Session

session.created: A new session is created
session.subscribed: After session subscribed a topic
session.unsubscribed: After session unsubscribed a topic
session.resumed: A session is resumed
session.takeovered: A session is takeovered
session.discarded: A session is discarded
session.terminated: A session is terminated

Hooks for Message

message.publish: A message is published
message.delivered: A message is delivered
message.acked: A messaeg is acked
message.dropped: A message is dropped due to no subscribers

@emqplus emqplus added the Enhancement label Dec 27, 2019
@emqplus emqplus added this to the 4.0-rc.4 milestone Dec 27, 2019
@emqplus emqplus self-assigned this Dec 27, 2019
@emqplus emqplus changed the title Add new hooks for client and session lifecircle Breaking Change: Add new hooks for client and session lifecircle Dec 27, 2019
@HJianBo HJianBo merged commit b7ca390 into develop Dec 27, 2019
0 of 2 checks passed
0 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
continuous-integration/travis-ci/push The Travis CI build failed
@HJianBo HJianBo deleted the new-hooks branch Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.