PHPWebSocket-Chat icon indicating copy to clipboard operation
PHPWebSocket-Chat copied to clipboard

optimizing server for image transfer

Open leksikov opened this issue 13 years ago • 0 comments

Hello. Great code.

I try to implement server for transferring multiple images, which forms animation from one client to another.

The problem is there is a big gap delay between two clients. When the image changed on client 1, the client 2 will update image after some time approx 1 second. And another problem after some time, the client 2 stops receiving any messages from server.

I transfer from client 1 to client 2 messages which contains link to the image on client 1. I need transfer messages with time 40 ms.

I tried to modify parameters const WS_TIMEOUT_RECV, const WS_TIMEOUT_PONG. the situation is same.

Could you please help me with this issue?

To increase server receiving and sending capabilities within 40 ms? Thank you.

leksikov avatar Aug 03 '12 06:08 leksikov