Network

Network I/O

The Network I/O subsystem mimics the standards found on the web. The following API surfaces are available:

Web Socket Support

The entire web socket API is supported, except for extensions handling.

XMLHttpRequest Support

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 ArrayBuffer, not Blob

Unsupported portions of the surface:

  • responseURL
  • Sending / receiving Blobs is not supported
  • Synchronous XHR will throw an error

Fetch Support

Fetch is polyfilled on top of the XHR implementation using https://github.com/github/fetch.

results matching ""

    No results matching ""