erich.wanker Posted March 8, 2021 Share Posted March 8, 2021 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 More sharing options...
Sherzod Posted March 8, 2021 Share Posted March 8, 2021 Hello, I think you have to use sockets. Try looking for solutions on the forum. Link to comment Share on other sites More sharing options...
mhmda Posted March 8, 2021 Share Posted March 8, 2021 It's not a good solution, try use websockets it's the perfect solution for you: http://forums.unigui.com/index.php?/topic/16276-make-your-app-a-real-time-web-app-using-websockets/ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now