#META_LECTURE#: #TITLE#

Modified: #LAST_MODIFIED#
Humla v#HUMLA_VERSION#

Overview of APIs and Protocols

APIs and Protocols
XHR Fetch API Server-Sent Events WebSocket
Request streaming no yes no yes
Response streaming limited yes yes yes
Framing mechanism HTTP HTTP event stream binary framing
Binary data transfers yes yes no (base64) yes
Compression yes yes yes limited
App. transport protocol HTTP HTTP HTTP WebSocket
Net. transport protocol TCP TCP TCP TCP
Streaming and Long-polling

Pushing and Polling

HTTP Streaming

Chunked Response

Issues with Chunked Response

XHR Polling

XHR Long Polling

Server-Sent Events

SSE Example

Event Stream Format

Auto-reconnect and Tracing

SSE Server-side implementation

SSE Server-side implementation - output

Streams API

Other Technologies

WebSocket Protocol

WebSocket

Connection Upgrade – Request

Connection Upgrade – Response

Data Transfer

Frame and Message

Head-of-line Blocking

WebSocket Browser API

Avoid Head of Line Blocking

WebSocket Infrastructure