Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is WebSocket Stateful?

I've heard confusing things about statefulness and HTTP. Is WebSocket stateful?

like image 869
Zamicol Avatar asked Feb 04 '26 16:02

Zamicol


1 Answers

Yes, WebSocket is stateful.

It uses the "Sec-WebSocket-Key" HTTP header to establish and maintain state between server and client.

You can read more about it on its RFC.

like image 182
Zamicol Avatar answered Feb 06 '26 11:02

Zamicol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!