emqx / emqx/emqx-elixir-plugin

Request: Add more detailed examples.

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
24
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi,

Would it be possible to have an example of how to create a plugin which, connected to a topic, takes the message (payload), transforms it and publishes it on another topic?

Example :
```
topic test/hello/msg
msg {"val1" : 50, "val2": 30}
Function to app : sum(val1, val2)
publish on topic test/hello/result -> {"val1" : 50, "val2": 30, "sum": 80}
```

A thousand thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.