Implements

Constructors

Methods

Constructors

  • Parameters

    • __namedParameters: {
          baseDomain?: string;
          subdomains?: Record<string, string>;
          ws?: WebSocketConstructor;
      } = {}
      • OptionalbaseDomain?: string

        Base WebSocket domain

      • Optionalsubdomains?: Record<string, string>

        Map of sub-domains (key is DC ID, value is string)

      • Optionalws?: WebSocketConstructor

        Custom implementation of WebSocket (e.g. https://npm.im/ws)

    Returns WebSocketTransport

Methods