WebIDLpedia

[DEPRECATED] UDPSocket interface

As of August 1, 2023, this name is no longer defined by a Web Platform specification

Definition

Direct Sockets API defines UDPSocket



[Exposed=(Window,Worker), SecureContext]
interface UDPSocket {
  constructor(optional UDPSocketOptions options = {});

  readonly attribute Promise<UDPSocketOpenInfo> opened;
  readonly attribute Promise<undefined> closed;

  Promise<undefined> close();
};

Methods and attributes that return objects implementing UDPSocket