Backendless Support
 
Waiting for user's response

PHP: Receiving the same published message many times, why?

Hi,

I'm publishing a message on a custom channel with specific headers.

When I subscribe to the channel and filter the messages by the header, using a custom JAVA class, the message is processed and removed from the channel (I can see it from the console messaging view in the browser).

While using a PHP script, which is called periodically every 10 seconds, the messages is processed BUT it is not removed from the channel. Hence I receive the same message many times!

Could you explain me why it happens?

Thanks for the answer!

Leave a Comment

Comments (4)

photo
1

Hi Starscream,

Please provide us the file with the small PHP example to reproduce your issue. You can send it to support@backendless.com

Regards, Ilya

photo
1

Hello,

I've just sent the PHP code example.

Thank you for your support!

photo
1

When you retrieve with PHP, does the message also stay in console and is never removed?

photo
1

Yes, it keeps staying in the console and it is removed after a bit of time (around 60 seconds)

photo