Jump to content

How to update the browser in a push fashion (Web Sockets like)


Luca

Recommended Posts

I am trying to implement a POC (proof of concept)  to display changes on a form determined by an event fired in the background (in the ServerModule) for all Mainform instances.

The main form contains a number of Labels created at run time and added into a centralized collection.

On the ServerModule a TUnitThreadTimer changes the captions of the labels in the collection.

The only way that I found to see the changes in the browser is call "UniSession.Synchronize" by a TUnitimer placed on the main form.

Is there a method to refresh the browser pushing the events from the application to the browsers ? (like WebSockets can do)   ?

Link to comment
Share on other sites

Hello,

I see you have been registered on the forum for a long time.

Can you please specify, which edition and build of UniGUI are you using?

12 minutes ago, Luca said:

like WebSockets can do

Yes.

What's even more important:

 

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...