12.15 Summary
In this chapter, you learned about various Web APIs. We’ve shown you the following APIs in the process:
-
The Web Socket API enables bidirectional communication between client and server.
-
Using server-sent events, it’s possible to actively send messages from the server to the client.
-
To store client-side data, you can use cookies, browser storage, or IndexedDB. Browser storage is divided into local storage and session storage: the former is available to all windows and tabs of a browser, whereas the latter is unique to each window or tab.
-
Via the File API, it’s possible to access files of the user, provided that the user has selected the files via a selection dialog or a drag-and-drop operation.
-
Via drag and drop, it’s ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access