The Network I/O subsystem mimics the standards found on the web. The following API surfaces are available:
- Web Sockets
Web Socket Support#
The entire web socket API is supported, except for extensions handling.
Most of the XHR API surface is supported, including:
- Setting request headers
- Getting response headers
- Event handling
- Sending text and binary data
- Text is expected to be UTF8 encoded.
- Binary data must use
Unsupported portions of the surface:
- Sending / receiving Blobs is not supported
- Synchronous XHR will throw an error
Fetch is polyfilled on top of the XHR implementation using https://github.com/github/fetch.