EMQ broker plugin to catch broker hooks through webhook.
http://emqtt.io
http://codersgarage.com
DEPS += emq_web_hook
dep_emq_web_hook = git https://github.com/emqtt/emq-web-hook master
{emq_web_hook, load}
[
{
emq_web_hook, [
{"api_url", "http://127.0.0.1/hooks"},
{"api_key", "123456"}
]
}
].
- client.connected
{
"api_key": "123456",
"action": "client_connected",
"clientId": "Paho12123123123"
}
- client.disconnected
{
"api_key": "123456",
"action": "client_disconnected",
"clientId": "Paho12123123123"
}
- client.subscribe
{
"api_key": "123456",
"action": "client_subscribe",
"clientId": "Paho12123123123",
"username": "sakib"
}
- client.unsubscribe
{
"api_key": "123456",
"action": "client_unsubscribe",
"clientId": "Paho12123123123",
"username": "sakib"
}
- session.created
{
"api_key": "123456",
"action": "session_created",
"clientId": "Paho12123123123",
"username": "sakib"
}
- session.subscribed
{
"api_key": "123456",
"action": "session_subscribed",
"clientId": "Paho12123123123",
"username": "sakib",
"topic": "/demo/topic"
}
- session.unsubscribed
{
"api_key": "123456",
"action": "session_unsubscribed",
"clientId": "Paho12123123123",
"username": "sakib",
"topic": "/demo/topic"
}
- session.terminated
{
"api_key": "123456",
"action": "session_terminated",
"clientId": "Paho12123123123",
"username": "sakib",
"reason": "unknown reason"
}
- message.publish
{
"api_key": "123456",
"action": "message_publish",
"topic": "/demo/topic",
"message": "Hello World",
"from": "Paho12123123123"
}
- message.delivered
{
"api_key": "123456",
"action": "message_delivered",
"topic": "/demo/topic",
"message": "Hello World",
"from": "Paho12123123123",
"username": "sakib"
}
- message.acknowledged
{
"api_key": "123456",
"action": "message_acknowledged",
"topic": "/demo/topic",
"message": "Hello World",
"from": "Paho12123123123",
"username": "sakib"
}
Copyright © Coders Garage
Distributed under MIT license.