rele
rele copied to clipboard
Add message.id to insert handler
I think #36 is somewhat similar? I have a use case where I'd like to use the message.id in the subscription handler. Currently, data + attributes are passed.
I can probably get around this by using preprocess_message hook to mutate the message.data or message. attributes but I'd prefer not to go that route.
Hey @hobochild Yeah unfortunately there is no way atm to access that data. As you mentioned, you could mutate the message data.
I have been toying in my head the possibility of adding an argument which would pass the entire message to the subscriber. It would follow a similar pattern such as celery does with its task handlers.