Feature #285
How the Wt supports the "Server Push"
| Status: | Closed | Start: | 02/05/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
Could you some example for "Server Push" ?
Thank you!
History
Updated by Koen Deforche almost 2 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 2 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 2 years ago
- File 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 2 years ago
- File 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 almost 2 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 1 year ago
- Status changed from Feedback to Resolved
A feature example was added for serverpush
Updated by Pieter Libin over 1 year ago
- Status changed from Resolved to Closed