Support Topics Documentation Slack YouTube Blog

Changing the message content in real time messaging events

In my real time before publish event i’m setting the message content but in the after event the old value is present not the new value.

This is from the log:

Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] [b30748af-e680-414d-aebf-e9c8d4cb0e72] [INVOKE HANDLER] messaging.beforePublish (RequestServices)

Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] { name: 'Joe', age: 30, ggg: '33333333' }

Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] Processing finished in 205.267ms

Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] [f3187e9c-6f9a-454e-997f-0fc43a6b03e7] [INVOKE HANDLER] messaging.afterPublish (*, async)

Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] { name: 'Joe', age: 30 }

Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] Processing finished in 14.710ms

Hello @mohammad_altoiher.

We apologize for the long wait. We will investigate your problem and immediately write back as soon as there is some result.

Regards,
Inna

We were able to reproduce your problem.
The internal ticket BKNDLSS-21797 is created, we will let you know about solution.

Regards,
Inna

@Inna_Shkolnaya
any solution yet? my work currently is dependent on it

Hello @mohammad_altoiher,

the BKNDLSS-21797 ticket status is “Waiting for test”. We’ll notify you here as soon at it will be completed.

Regards,
Olha

Hi @mohammad_altoiher,

We’ve released the new version of Backendless. Please, could you be so kind to confirm that the issue disappears?

Best regards,
Yevgen