Hussein Nasser

The Anatomy of a WebSockets frame

With a maximum header size of 14 bytes makes more efficient for bidirectional use cases (eg chatting, gaming) compared to using long polling which has the overhead of HTTP headers.

Maximum message size can be up to 2^63 bytes

Of course being on top of TCP we suffer the head of line blocking.

3 weeks ago | [YT] | 467



@stentechy3346

Is there a post on this Hussein, would love to learn more, this isn’t very clear right now.

3 weeks ago | 14

@web3engineer

Totally my new laptop background!

2 weeks ago | 0

@khaledmohamed3026

Thats why WebTransport is better

3 weeks ago | 0

@mahmoudbasha4838

Sorry Hussien, but i didn't get the idea of the max size is 2^63 bytes, how the data in one packet be a lot of bytes? How it got transfered in the physical layer as one IP packet ?

3 weeks ago | 4

@DevDeployShip

I’ve wrote exactly about this https://medium.com/@funnymous43/you-dont-know-websocket-until-this-ddffcd58c72c?sk=d193d190d0335ccde492b3eaf77b4123

3 weeks ago | 0