Feature #285
closedHow the Wt supports the "Server Push"
0%
Description
Could you some example for "Server Push" ?
Thank you!
Files
Updated by Koen Deforche almost 15 years ago
- Status changed from New to Feedback
The simplechat gives an example of server push (where data is pushed from one client to others). Perhaps you are looking for the scenario where data is pushed from (calculations performed by) another thread ?
Updated by ruliang ge almost 15 years ago
Thank you!
I have seen the simplechat example. The WTextArea give an enter pressed signal,and make the server push process works.
As you said, When data changed in another thread, can the changed data be a signal to make the server push works?
Updated by Koen Deforche almost 15 years ago
- File serverpush.cc serverpush.cc added
From another thread you can grab the update lock, make the widget changes you want, and push them.
See also the following small (quite nonsensical) example attached.
Updated by ruliang ge almost 15 years ago
- File socketServerPush.JPG socketServerPush.JPG added
Thank you very much for your example!
The follow picture file is what i want to do "Server Push".
I down not how to emit an signal from one thread to another.
Can you give a suggestion?
Thank you very much!
Updated by Omer Katz over 14 years ago
I suggest you take a look here then.
I wrote this article.
http://redmine.webtoolkit.eu/wiki/wt/SimpleChat_made_easy
Updated by Koen Deforche over 14 years ago
- Status changed from Feedback to Resolved
A feature example was added for serverpush
Updated by Pieter Libin over 14 years ago
- Status changed from Resolved to Closed