tailscale-web - v0.1.13
    Preparing search index...

    Interface Connection

    interface Connection {
        close(): void;
        onData(handler: (data: Uint8Array) => void): void;
        write(data: string | Uint8Array<ArrayBufferLike>): void;
    }
    Index

    Methods

    • Close the connection and release all resources.

      Returns void

    • Register a handler for incoming data. Must be called before write() — data can arrive as soon as the connection is established.

      Parameters

      • handler: (data: Uint8Array) => void

      Returns void

    • Send data over the connection. Accepts a Uint8Array or a string.

      Parameters

      • data: string | Uint8Array<ArrayBufferLike>

      Returns void