DEV Community

Discussion on: Web socket and HTTP(s); Intro to simple differences

Collapse
 
netikras profile image
Darius Juodokas

HTTP, HyperText Transfer Protocol is a Half-duplex system

Is it though? AFAIK http/1.1 can write responses while the request is still being sent, and with http/2 the bidirectional communication becomes even more obvious (ref: http2.github.io/http2-spec/#Stream...).

I could be wrong so please, correct me if I am.

Collapse
 
eulier profile image
Eulier Gonzalez • Edited

I already update the post. It's HTTP/1.1 which behave as a half-duplex, it can be use as a full-duplex using http polling, but acording to the Socket.io docs, it's more slower than it should be, when writing chat applications.