Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>> "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.



Works 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.


Really? 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.


At a full 60WPM ~= 60 * 6 keystroke per second *1kb/keystroke~= 360kb / second. However, clunking at 1/20th of a second is probably fine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: