44
55<h2 ><span >Wt Chat client</span ></h2 >
66
7- <p >This is a simple multi-user chat client and server.</p >
7+ <p >This is a multi-user chat client and server.</p >
88
9- <p >For simplicity , server and client all run in the same process, and
10- therefore it is ideal for a deployment using wthttpd, when running all
11- clients in the same process. (Because all I/O is asynchroneous, this
12- probably could easily support thousands of simultaneous users as
13- well) .</p >
9+ <p >To keep the example simple , server and clients all run in the same
10+ process. Still, because all I/O in Wt is asynchronous even when using
11+ "server push" which requires an open connection with each client at
12+ all times, clients do not tie up threads, and as such the application
13+ could easily support thousands of simultaneous users as well.</p >
1414
1515<p >The client is contained in a widget (SimpleChatWidget), and can be
1616instantiated as many times as you like, even in the same
17- application. <br />
17+ application.<br />
1818
1919Because of the widget abstraction, it is straight forward to include a
2020chat client in your own application, by linking both the client and
@@ -24,10 +24,11 @@ server classes into your application.</p>
2424 <message id =" details" >
2525
2626<p >The implementation uses server-initiated updates, a feature that is
27- still under development in Wt. When a message is received, the user
28- interface (i.e. widget tree) not only of the current session, but also
29- of all other clients is updated simultaneously, as part of handling
30- the event.</p >
27+ not much different from regular client-server communication in Wt, and
28+ allows updating a session from outside its regular event loop. When a
29+ message is received, the user interface (i.e. widget tree) not only of
30+ the current session, but also of all other sessions is updated and
31+ "pushed" to these clients simultanously.</p >
3132
3233 </message >
3334
0 commit comments