Im looking for a way to implement custom channels in the phoenix framework I don't want to use the topics but do routing based on payload.
For example i have a json message like this
{
"command":"hello",
"payload": {
"message_id":"001",
"body":"is it me your looking for"
}
}
}
and want to do routing based on the value of "command", and i have no clue where to start. i can not send topics because i want to use a existing api.