Jump to content

Recommended Posts

Posted

Message from: "Jason Reid"

 

Hi All

 

How could I implement server-push ?

 

Take for example a simple multi-user chat.

I want the server to update all connected clients when one client updates

the chat.

I could do this with a timer, but this is not very efficient as it would

generate traffic for all clients every time the timer fires.

 

Any ideas ?

 

 

--

Jason Reid

Systems Developer

Compucorp Ltd.

www.compucorp.co.uk

 

 

 

 

.

 

  • 2 weeks later...
Posted

Message from: "Oscar Flor"

 

Jason Reid wrote:

 

> Hi All

>

> How could I implement server-push ?

>

> Take for example a simple multi-user chat.

> I want the server to update all connected clients when one client

> updates the chat. I could do this with a timer, but this is not very

> efficient as it would generate traffic for all clients every time the

> timer fires.

>

> Any ideas ?

 

You could make your server to generate a file on the server, then your

clients check this file. The file contains a list of client that have a

need to request the server for message.

 

Normally it can't be possible to make a server push due of kind of

communication between web clients and the server in a Web protocol.

 

Regards

 

--

 

.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...