News for hackers. Stuff that matters.
Re:Yesterday's best-practices are today's HTTP/2 anti-patterns by shorbaji on Saturday May 30, 2015 @11:29PM (#9632940)
> If you use WebSockets for "realtime push", then HTTP/2's server push feature could potentially be used as an alternative.

One thing to keep in mind with HTTP/2 server push is that a server can only send a push in response to a client request. So this isn't a drop-in "real-time push" mechanism. To implement the equivalent of real-time push would likely require client/server to keep a stream within the connection in the "open" state whereby the server can send continue to send data frames on that.

Re:Yesterday's best-practices are today's HTTP/2 anti-patterns by bonobo on Sunday May 31, 2015 @12:06AM (#9633022)

    One thing to keep in mind with HTTP/2 server push is that a server can only
    send a push in response to a client request.
This was the difference that I was not aware of, thanks. So HTTP/2 server push is just opportunistic, while WebSockets are real-time push with a persistent connection.