Creating a alert using WebServer PUT API. Noticed a variable delay in popup. Is it normal?

I tried to created an alert using PUT API the following way
http://127.0.0.1:9090/recipes/default/tiddlers/Demo_alert
Headers:
X-Requested-With: Tiddlywiki
Content-Type: application/json
{
“title”: “Demo_alert”,
“text”: “This is the content of my tiddler. It is an alert: “,
“component”: “tw5_auth”,
“modified”: “20250420163230410”,
“tags”: [”$:/tags/Alert”]
}

I noticed that the alert is not poping up immediately after getting the 204 from my postman client.
I cannot identified what is the real trigger. Sometime I get it shortly, sometime I have to wait for several seconds (10, 20 even 30s).

Is their a rational behind ?
I’ve also tried to set the ‘modified’ to a future datetime to check if tiddlywiki use it to popup the alert at the right time, but this does not works as expected.

Could you clarify ?

Regards

1 Like

Hi @vpl!

What’s happening is that TiddlyWiki only receives updates (such as new tiddlers) when it polls, which is every 60 seconds by default.

Hi !!

Thanks a lot for your answer.
This explains more or less what I noticed.
This webServer PUT approach is a good way to notify the user remotely !

Thanks a lot
Regards