News for hackers. Stuff that matters.
Re:The WebSocket protocol "Last Call" by braindead_in on Tuesday July 19, 2011 @03:37AM (#2779930)
Is there a good overview of websockets? I just glanced at the spec and it looks quite complex. Especially the part about framing. Do websockets have any relation to TCP sockets? If over TCP, why do they use their own framing?
Re:The WebSocket protocol "Last Call" by udp on Tuesday July 19, 2011 @08:20AM (#2780524)
Because TCP doesn't provide any framing - it's just a stream of data. Text based protocols usually use newlines as delimiters, and binary protocols usually prefix each message with a size.