WebIDLpedia

[DEPRECATED] TCPServerSocket interface

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

Definition

Direct Sockets API defines TCPServerSocket



[Exposed=(Window,Worker), SecureContext]
interface TCPServerSocket {
  constructor(DOMString localAddress,
              optional TCPServerSocketOptions options = {});

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

  Promise<undefined> close();
};

Methods and attributes that return objects implementing TCPServerSocket