WebSockets — Web platform APIs

Enable real-time communication between clients and servers using WebSockets.

Eg WebSocket

  • BinaryType — Specifies the type of binary data being received over a `WebSocket` connection.
  • CloseEvent — The `CloseEvent` interface represents an event that occurs when a `WebSocket` connection is closed.
  • CloseEventInit — Configuration options for a `WebSocket` "close" event.
  • WebSocket — Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
  • WebSocketCloseInfo — **UNSTABLE**: New API, yet to be vetted.
  • WebSocketConnection — **UNSTABLE**: New API, yet to be vetted.
  • WebSocketError — **UNSTABLE**: New API, yet to be vetted.
  • WebSocketEventMap — Interface mapping `WebSocket` event names to their corresponding event types. Used for strongly typed event handling with `addEventListener` and `removeEventListener`.
  • WebSocketOptions — Options for a WebSocket instance. This feature is non-standard.
  • WebSocketStream — **UNSTABLE**: New API, yet to be vetted.
  • WebSocketStreamOptions — **UNSTABLE**: New API, yet to be vetted.