Jump to content

send event to client - if server has informations for him


erich.wanker

Recommended Posts

Hy,

A UniGui Desktop / Hyperserver -Question:

 

on my webserver  - i have a php file which becomes 2 infos ( 2 Strings: message and receiver) from a 3rd party thing..

now i want to send this information to the running unigui-client-app of the right user

i tried out a timer based thing and it works - but i search a "no timer" thing 🙂

 

the timerbased solution is very easy:

the php writes the 2 values in my firebird database (inclusive the value "read" = 0)

the unigui-app looks every minute in the table - if where is a record:

select * from messages where user = xx and read =0

...

 

this solution is too slow ( 1 minute is too long) .. and if i make a faster timer intervall - i have troubles with server .. a lot of users should use this at the same time

 

PS:

i can edit the php in every way .. it becomes the 2 values with $POST 

the php can become 100 records from the 3rd party-thing in 1 minute .. somethimes is nothing for 4 hours .. very differently .. 😉

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...