Websocket vs. HTTP/2

https://www.infoq.com/articles/websocket-and-http2-coexist/

HTTP/2WebSocket
HeaderCompressed (HPACK)None
BinaryYESBinary or Textual
MultiplexingYESYES
PrioritizationYESNO
CompressionYESYES
DirectionClient/Server + Server PushBidirectional
Full-DuplexYESYES

is HTTP/2 a replacement for push technologies such as WebSocket or SSE? NO

Server Push vs Websocket Bidirectional communication

  • Server push only push data down to the client cache
  • i.e. the client application does not get notification for the event