Tuesday, 11 April 2017

Make websocket ignore certain request

Background:

I'm developing a midle hand between a woocommerce shop and an REST api. I'm constantly checking for "events" like "delete", "post" and "edits". The thing is when i edit a produt i get stuck in an loop. Gonna try to explain. When I make an edit in the REST API the edited data gets sent to woocommerce to edit a product which the REST api detects and the data gets back to the api.

Question:

I wonder if their is anyway to make the websocket ignore a certain request to avoid this senario? Or do I need to solve this another way?

Appolegy:

I'm fully aware that it might be hard to understand my question without any code but their is so much code involved. But the the code might not be neccessary if I just want to know if it's possible to make the websocket ignore a request.

Thank you!



via WilliamG

No comments:

Post a Comment