I’ve been looking around to catch message whilst being published so I can fail the delivery if a message is above a certain size. From what I understand the interceptor will be called once the whole message has beemn received ut by then it is too late.
Is there a possibility to doo this with plugin?
If not, can someone tell me where is the receiver in the github source code, maybe I can fork?
thank you for pointing this out. I’m afraid it there is currently no mechanism that would allow prevention of message transmission as you are looking to do. After a discussion with my colleagues, we have added an improvement ticket to make sure the decoder does not wait for the full transmission of the PUBLISH anymore. I cannot give you any promises on when the change will be released, but it will likely be included in one of the next updates.