Jump to content

What about Server-sent events?


VolkovVitalD

Recommended Posts

16 minutes ago, VolkovVitalD said:

Hello!

I didn't find any information on the forum on the use of this technology.

It would be great to call:
UniSession.NotifyClient('Notifications from server');

 

Hello, what is the purpose of this request?
Do you want to notify the client running on the server or do you want to send a notification to the client computer?

Link to comment
Share on other sites

2 hours ago, VolkovVitalD said:

I want send notification to client browser into JS handler.

OK, You can use AddJS, like this:

onClick or in Timer Event,

 

UniSession.AddJs ('Ext.toast(''Your message to Client</br> New line for another message'',''Caption of Message'');');

Link to comment
Share on other sites

7 hours ago, VolkovVitalD said:

Hello!

I didn't find any information on the forum on the use of this technology.

It would be great to call:
UniSession.NotifyClient('Notifications from server');

 

You can not interact with client without getting a request from the client. 

To solve this we are implementing websockets. We will publish it in the next or the other build.

  • Like 1
Link to comment
Share on other sites

4 hours ago, d.bernaert said:

Or the other build... 🙂 what build will that be 🙂 there are no builds...

We recently published a build. 

Currently we are actively working on websockets. If everything go well we will publish it in the next build but if something urgent come to table, we may defer it one build.

Link to comment
Share on other sites

On 3/25/2022 at 8:24 PM, Hayri ASLAN said:

You can not interact with client without getting a request from the client. 

To solve this we are implementing websockets. We will publish it in the next or the other build.

I think it is possible to implement both protocols. SSE is already implemented in the Indy components on which uniGUI is based and it can be easily integrated. I wanted to use JS SSE event handlers inside the UniHTMLFrame and update the contents of third-party components upon notification. This does not affect the work of uniGUI in any way.

Thanks for uniGUI framework!

I will be waiting for new releases.

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