4 ms·
>> "or watch another person edit a document in real time, how would you do that with XHR?" Works fine on Etherpad. Having said that, I agree, the lag with Web
by axod 17y ago
>> "or watch another person edit a document in real time, how would you do that with XHR?"
Works fine on Etherpad.
Having said that, I agree, the lag with WebSocket is likely to be a less. Hopefully WebSocket will get the ability to do deflate/gzip soon as well. That would make it a very clear winner.
- anonjon 17y agoWorks fine but doesn't work in the same way. On etherpad there is a lag and updates get chunked. With websockets you could do it by the keystroke with little to no overhead.
- mbreese 17y agoReally? You're still sending packets, so instead of sending roughly 1k of data, you're going to send a packet with roughly 1 byte of information on each keystroke? What I'd really like to see is the breakdown of the number of packets sent as opposed to the number of bytes. I doubt the difference would be as significant.
- Retric 17y agoAt a full 60WPM ~= 60 * 6 keystroke per second *1kb/keystroke~= 360kb / second. However, clunking at 1/20th of a second is probably fine.