Sitemap

Member-only story

How JavaScript works: Deep dive into WebSockets and HTTP/2 with SSE + how to pick the right path

12 min readNov 2, 2017

This is post # 5 of the series dedicated to exploring JavaScript and its building components. In the process of identifying and describing the core elements, we also share some rules of thumb we use when building SessionStack, a JavaScript tool for developers to identify, visualize, and reproduce web app bugs through pixel-perfect session replay.

If you missed the previous chapters, you can find them here:

This time we’ll dive into the world of communication protocols, mapping and discussing their attributes and building parts on the way. We’ll offer a quick comparison of WebSockets and HTTP/2. At the end, we share some ideas on how to choose which way to go when it comes to network protocols.

Intro

Nowadays complex web apps that feature rich, dynamic UIs are taken for granted. And it’s not surprising — the internet has come a long way since its inception.

Initially, the internet wasn’t built to support such dynamic and complex web apps. It was conceived to be a collection of…

Alexander Zlatkov

Responses (19)

To respond to this story,
get the free Medium app.

What an amazing series of articles. I learned a lot from this one. Thank you!

34

How JavaScript works

Very cool!

17

What is Hearbeating?

Heartbeating.

1