Type alias Connection

Connection: {
    approximateDistanceInMeters?: number;
    id: string;
    peer1: Uint8Array;
    peer2: Uint8Array;
    type: ConnectionType;
}

Represents a connection between two peers on the Ditto mesh network.

Type declaration

  • Optional approximateDistanceInMeters?: number
  • id: string

    Unique identifier for the connection.

  • peer1: Uint8Array

    The peer key of the peer at one end of the connection.

  • peer2: Uint8Array

    The peer key of the peer at one end of the connection.

  • type: ConnectionType

    Type of transport enabling this connection.