Project

General

Profile

Actions

Feature #285

closed

How the Wt supports the "Server Push"

Added by ruliang ge almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/05/2010
Due date:
% Done:

0%

Estimated time:

Description

Could you some example for "Server Push" ?

Thank you!


Files

serverpush.cc (1.49 KB) serverpush.cc Koen Deforche, 02/26/2010 03:02 PM
socketServerPush.JPG (12.6 KB) socketServerPush.JPG The structure ruliang ge, 03/03/2010 04:24 AM
Actions #1

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 ?

Actions #2

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?

Actions #3

Updated by Koen Deforche almost 15 years ago

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.

Actions #4

Updated by ruliang ge almost 15 years ago

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!

Actions #5

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

Actions #6

Updated by Koen Deforche over 14 years ago

  • Status changed from Feedback to Resolved

A feature example was added for serverpush

Actions #7

Updated by Pieter Libin over 14 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF