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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...