Class WarpClient

Hierarchy

Constructors

Properties

firstChild: Component<any>
hostUri: Property<WarpClient, Uri, [Uri]>
idleTimeout: Property<WarpClient, number, [number]>
key: string
laneUri: Property<WarpClient, Uri, [Uri]>
lastChild: Component<any>
maxReconnectTimeout: Property<WarpClient, number, [number]>
nextSibling: Component<any>
nodeUri: Property<WarpClient, Uri, [Uri]>
observerType?: Class<WarpClientObserver<WarpClient>>
online: Property<WarpClient, boolean, [boolean]> & Property<WarpScope, boolean, [boolean]>
parent: Component<any>
previousSibling: Component<any>
sendBufferSize: Property<WarpClient, number, [number]>
unlinkDelay: Property<WarpClient, number, [number]>
warpRef: Property<WarpClient, WarpRef, [WarpRef]>
workerUrl: Property<WarpClient, string, [string]>
wsConstructor: Property<WarpClient, {
    CLOSED: 3;
    CLOSING: 2;
    CONNECTING: 0;
    OPEN: 1;
    prototype: WebSocket;
    new (url, protocols?): WebSocket;
}, [{
    CLOSED: 3;
    CLOSING: 2;
    CONNECTING: 0;
    OPEN: 1;
    prototype: WebSocket;
    new (url, protocols?): WebSocket;
}]>

Type declaration

    • new (url, protocols?): WebSocket
    • Parameters

      • url: string | URL
      • Optional protocols: string | string[]

      Returns WebSocket

  • Readonly CLOSED: 3
  • Readonly CLOSING: 2
  • Readonly CONNECTING: 0
  • Readonly OPEN: 1
  • prototype: WebSocket
wsProtocols: Property<WarpClient, string | readonly string[], [string | readonly string[]]>
InsertChildFlags: number
MountFlags: number
ReinsertChildFlags: number
RemoveChildFlags: number

Accessors

  • get componentType(): Class<Component<Component<any>>>
  • Returns Class<Component<Component<any>>>

  • get insertChildFlags(): number
  • Returns number

  • get inserting(): boolean
  • Returns boolean

  • get mountFlags(): number
  • Returns number

  • get mounted(): boolean
  • Returns boolean

  • get reinsertChildFlags(): number
  • Returns number

  • get removeChildFlags(): number
  • Returns number

  • get removing(): boolean
  • Returns boolean

Methods

  • Type Parameters

    • F extends Class<Instance<F, Component<any>>> & Creatable<Instance<F, Component<any>>>

    Parameters

    • childFactory: F
    • Optional key: string

    Returns InstanceType<F>

  • Type Parameters

    • Child extends Component<any>

    Parameters

    • child: Child | LikeType<Child>
    • Optional key: string

    Returns Child

  • Parameters

    • child: Component<any> | {
          create?() => any;
      }
    • Optional key: string

    Returns Component<any>

  • Parameters

    • fastener: Fastener<any, any, any>

    Returns void

  • Parameters

    • hostUri: UriLike
    • credentials: ValueLike

    Returns void

  • Parameters

    • credentials: ValueLike

    Returns void

  • Parameters

    • fastener: Fastener<any, any, any>

    Returns void

  • Type Parameters

    • O

    • K extends string | number | symbol

    Parameters

    • this: {
          observerType?: Class<O>;
      }
      • Optional Readonly observerType?: Class<O>
    • key: K
    • Rest ...args: ObserverParameters<O, K>

    Returns void

  • Parameters

    • hostUri: UriLike

    Returns WarpHost

  • Parameters

    • hostUri: UriLike
    • nodeUri: UriLike
    • laneUri: UriLike
    • body: ValueLike

    Returns void

  • Parameters

    • nodeUri: UriLike
    • laneUri: UriLike
    • body: ValueLike

    Returns void

  • Parameters

    • laneUri: UriLike
    • body: ValueLike

    Returns void

  • Parameters

    • body: ValueLike

    Returns void

  • Parameters

    • relative: Component<any>

    Returns Component<any>

  • Parameters

    • hostUri: Uri

    Returns WarpHost

  • Parameters

    • fastener: Fastener<any, any, any>

    Returns void

  • Parameters

    • parent: Component<any>

    Returns void

  • Parameters

    • parent: Component<any>

    Returns void

  • Parameters

    • child: Component<any>
    • target: Component<any>

    Returns void

  • Returns void

  • Parameters

    • child: Component<any>
    • target: Component<any>

    Returns void

  • Parameters

    • child: Component<any>

    Returns void

  • Returns void

  • Parameters

    • fastener: Fastener<any, any, any>

    Returns void

  • Parameters

    • that: unknown

    Returns boolean

  • Type Parameters

    • T

    Parameters

    • callback: ((child) => void | T)
        • (child): void | T
        • Parameters

          • child: Component<any>

          Returns void | T

    Returns T

  • Type Parameters

    • T

    • S

    Parameters

    • callback: ((this, child) => void | T)
        • (this, child): void | T
        • Parameters

          • this: S
          • child: Component<any>

          Returns void | T

    • thisArg: S

    Returns T

  • Type Parameters

    • F extends Class<Component<any>>

    Parameters

    • ancestorType: F

    Returns InstanceType<F>

  • Parameters

    • ancestorType: Class<Component<any>>

    Returns Component<any>

  • Type Parameters

    • F extends Class<Component<any>>

    Parameters

    • key: string
    • childType: F

    Returns InstanceType<F>

  • Parameters

    • key: string
    • Optional childType: Class<Component<any>>

    Returns Component<any>

  • Type Parameters

    • F extends Fastener<any, any, any>

    Parameters

    • fastenerName: PropertyKey
    • Optional fastenerType: Proto<F>
    • Optional contextType: Proto<any>

    Returns F

  • Type Parameters

    • F extends Class<Component<any>>

    Parameters

    • childType: F

    Returns InstanceType<F>

  • Parameters

    • childType: Class<Component<any>>

    Returns Component<any>

  • Parameters

    • hostUri: UriLike

    Returns WarpHost

  • Type Parameters

    • F extends Class<Component<any>>

    Parameters

    • childType: F

    Returns InstanceType<F>

  • Parameters

    • childType: Class<Component<any>>

    Returns Component<any>

  • Type Parameters

    • F extends Class<Component<any>>

    Parameters

    • siblingType: F

    Returns InstanceType<F>

  • Parameters

    • siblingType: Class<Component<any>>

    Returns Component<any>

  • Type Parameters

    • F extends Fastener<any, any, any>

    Parameters

    • fastenerName: PropertyKey
    • Optional fastenerType: Proto<F>
    • Optional contextType: Proto<any>

    Returns F

  • Type Parameters

    • F extends Class<Component<any>>

    Parameters

    • siblingType: F

    Returns InstanceType<F>

  • Parameters

    • siblingType: Class<Component<any>>

    Returns Component<any>

  • Type Parameters

    • F extends Class<Component<any>>

    Parameters

    • rootType: F

    Returns InstanceType<F>

  • Parameters

    • rootType: Class<Component<any>>

    Returns Component<any>

  • Parameters

    • child: Component<any>
    • comparator: Comparator<Component<any>>

    Returns Component<any>

  • Returns number

  • Parameters

    • hostUri: UriLike

    Returns WarpRef

  • Type Parameters

    • F extends Class<Instance<F, Component<any>>> & Creatable<Instance<F, Component<any>>>

    Parameters

    • childFactory: F
    • target: Component<any>
    • Optional key: string

    Returns InstanceType<F>

  • Type Parameters

    • Child extends Component<any>

    Parameters

    • child: Child | LikeType<Child>
    • target: Component<any>
    • Optional key: string

    Returns Child

  • Parameters

    • child: Component<any> | {
          create?() => any;
      }
    • target: Component<any>
    • Optional key: string

    Returns Component<any>

  • Parameters

    • descendant: Component<any>

    Returns boolean

  • Parameters

    • hostUri: UriLike
    • nodeUri: UriLike
    • laneUri: UriLike

    Returns WarpRef

  • Parameters

    • nodeUri: UriLike
    • laneUri: UriLike

    Returns WarpRef

  • Parameters

    • laneUri: UriLike

    Returns WarpRef

  • Parameters

    • like: {
          create?() => Component<any>;
      }
      • create?:function
        • Returns Component<any>

    Returns void

  • Returns void

  • Parameters

    • hostUri: UriLike
    • nodeUri: UriLike

    Returns WarpRef

  • Parameters

    • nodeUri: UriLike

    Returns WarpRef

  • Parameters

    • parent: Component<any>

    Returns void

  • Parameters

    • parent: Component<any>

    Returns void

  • Parameters

    • child: Component<Component<any>>
    • target: Component<Component<any>>

    Returns void

  • Returns void

  • Parameters

    • child: Component<any>
    • target: Component<any>

    Returns void

  • Parameters

    • child: Component<Component<any>>

    Returns void

  • Returns void

  • Parameters

    • hostUri: UriLike

    Returns WarpHost

  • Type Parameters

    • F extends Class<Instance<F, Component<any>>> & Creatable<Instance<F, Component<any>>>

    Parameters

    • childFactory: F
    • Optional key: string

    Returns InstanceType<F>

  • Type Parameters

    • Child extends Component<any>

    Parameters

    • child: Child | LikeType<Child>
    • Optional key: string

    Returns Child

  • Parameters

    • child: Component<any> | {
          create?() => any;
      }
    • Optional key: string

    Returns Component<any>

  • Parameters

    • Optional t: number

    Returns void

  • Parameters

    • child: Component<any>
    • target: Component<any>

    Returns void

  • Returns void

  • Type Parameters

    • Child extends Component<any>

    Parameters

    • child: Child

    Returns Child

  • Parameters

    • child: Component<any>

    Returns Component<any>

  • Parameters

    • key: string | Component<any>

    Returns Component<any>

  • Returns void

  • Type Parameters

    • F extends Class<Instance<F, Component<any>>> & Creatable<Instance<F, Component<any>>>

    Parameters

    • newChildFactory: F
    • oldChild: Component<any>

    Returns Component<any>

  • Type Parameters

    • Child extends Component<any>

    Parameters

    • newChild: Component<any> | {
          create?() => any;
      }
    • oldChild: Child

    Returns Child

  • Parameters

    • newChild: Component<any> | {
          create?() => any;
      }
    • oldChild: Component<any>

    Returns Component<any>

  • Parameters

    • updateFlags: number
    • Optional immediate: boolean

    Returns void

  • Type Parameters

    • S

    Parameters

    • this: S
    • properties: {
          [K in string | number | symbol as S[K] extends {
                  set(value) => any;
              }
              ? K
              : never]?: S[K] extends {
                  set(value) => any;
              }
              ? T
              : never
      }
    • Optional timing: boolean | TimingLike

    Returns WarpClient

  • Type Parameters

    • F extends Class<Instance<F, Component<any>>> & Creatable<Instance<F, Component<any>>>

    Parameters

    • key: string
    • newChildFactory: F

    Returns Component<any>

  • Parameters

    • key: string
    • newChild: Component<any> | {
          create?() => any;
      }

    Returns Component<any>

  • Type Parameters

    • S

    Parameters

    • this: S
    • properties: {
          [K in string | number | symbol as S[K] extends {
                  setIntrinsic(value) => any;
              }
              ? K
              : never]?: S[K] extends {
                  setIntrinsic(value) => any;
              }
              ? T
              : never
      }
    • Optional timing: boolean | TimingLike

    Returns WarpClient

  • Parameters

    • comparator: Comparator<Component<any>>

    Returns void

  • Type Parameters

    • K extends keyof WarpClient

    • F extends string | number | boolean | readonly Fastener<any, any, any>[] | Component<any> | Class<Component<Component<any>>> | {} | {} | {} | (() => void) | (() => void) | (() => void) | {} | (() => void) | {} | ((updateFlags, immediate?) => void) | (<F>(fastenerName, fastenerType?, contextType?) => F) | (<F>(fastenerName, fastenerType?, contextType?) => F) | ((fastener) => void) | ((fastener) => void) | ((t?) => void) | (<O, K>(this, key, ...args) => void) | ((that) => boolean) | (() => number) | ((like) => void) | {} | {} | {} | {
          <F>(siblingType): InstanceType<F>;
          (siblingType): Component<any>;
      } | {} | {
          <F>(siblingType): InstanceType<F>;
          (siblingType): Component<any>;
      } | {} | {
          <F>(childType): InstanceType<F>;
          (childType): Component<any>;
      } | {} | {
          <F>(childType): InstanceType<F>;
          (childType): Component<any>;
      } | {} | {
          <T>(callback): T;
          <T, S>(callback, thisArg): T;
      } | Dictionary<Component<any>> | {
          <F>(key, childType): InstanceType<F>;
          (key, childType?): Component<any>;
      } | {
          <F>(key, newChildFactory): Component<any>;
          (key, newChild): Component<any>;
      } | {
          <F>(childFactory, key?): InstanceType<F>;
          <Child>(child, key?): Child;
          (child, key?): Component<any>;
      } | {
          <F>(childFactory, key?): InstanceType<F>;
          <Child>(child, key?): Child;
          (child, key?): Component<any>;
      } | {
          <F>(childFactory, target, key?): InstanceType<F>;
          <Child>(child, target, key?): Child;
          (child, target, key?): Component<any>;
      } | {
          <F>(newChildFactory, oldChild): Component<any>;
          <Child>(newChild, oldChild): Child;
          (newChild, oldChild): Component<any>;
      } | {
          <Child>(child): Child;
          (child): Component<any>;
          (key): Component<any>;
      } | ((child, target) => void) | ((comparator) => void) | ((child, comparator) => Component<any>) | {
          <F>(ancestorType): InstanceType<F>;
          (ancestorType): Component<any>;
      } | {
          <F>(rootType): InstanceType<F>;
          (rootType): Component<any>;
      } | ((descendant) => boolean) | ((relative) => Component<any>) | ((template?) => EventDownlink<WarpRef, any, [any]>) | (<V>(template?) => ValueDownlink<WarpRef, V, [V]>) | (<V>(template?) => ListDownlink<WarpRef, V, [Iterable<V>]>) | (<K, V>(template?) => MapDownlink<WarpRef, K, V, [Iterable<[K, V]>]>) | ((hostUri) => WarpRef) | {
          (hostUri, nodeUri): WarpRef;
          (nodeUri): WarpRef;
      } | {
          (hostUri, nodeUri, laneUri): WarpRef;
          (nodeUri, laneUri): WarpRef;
          (laneUri): WarpRef;
      } | {
          (hostUri, nodeUri, laneUri, body): void;
          (nodeUri, laneUri, body): void;
          (laneUri, body): void;
          (body): void;
      } | {
          (hostUri, credentials): void;
          (credentials): void;
      } | {} | {} | Class<WarpClientObserver<WarpClient>> | ((hostUri) => WarpHost) | ((hostUri) => WarpHost) | ((hostUri) => WarpHost) | Property<WarpClient, number, [number]> | Property<WarpClient, {
          CLOSED: 3;
          CLOSING: 2;
          CONNECTING: 0;
          OPEN: 1;
          prototype: WebSocket;
          new (url, protocols?): WebSocket;
      }, [{
          CLOSED: 3;
          CLOSING: 2;
          CONNECTING: 0;
          OPEN: 1;
          prototype: WebSocket;
          new (url, protocols?): WebSocket;
      }]> | Property<WarpClient, string | readonly string[], [string | readonly string[]]> | Property<WarpClient, string, [string]> | {} | {} | {} | {} | {} | Property<WarpClient, WarpRef, [WarpRef]> | Property<WarpClient, boolean, [boolean]> & Property<WarpScope, boolean, [boolean]> | Property<WarpClient, Uri, [Uri]> | (<K, F>(fastenerName) => F extends Fastener<any, any, any>
          ? F
          : never) | (<S>(this, properties, timing?) => WarpClient) | ReadonlySet<WarpClientObserver<WarpClient>> | ((observer) => void) | ((observer) => void) | (<S>(this, properties, timing?) => WarpClient) = WarpClient[K]

    Parameters

    • fastenerName: K

    Returns F extends Fastener<any, any, any>
        ? F
        : never

  • Returns void

  • Parameters

    • parent: Component<any>

    Returns void

  • Parameters

    • parent: Component<any>

    Returns void

  • Parameters

    • child: Component<any>
    • target: Component<any>

    Returns void

  • Returns void

  • Parameters

    • child: Component<any>
    • target: Component<any>

    Returns void

  • Parameters

    • child: Component<any>

    Returns void

  • Returns void

  • Type Parameters

    • S extends (new () => InstanceType<S>)

    Parameters

    • this: S

    Returns InstanceType<S>

  • Type Parameters

    • S extends Class<Instance<S, Component<Component<any>>>>

    Parameters

    • this: S
    • value: InstanceType<S> | LikeType<InstanceType<S>>

    Returns InstanceType<S>

  • Returns WarpClient

Generated using TypeDoc