Type alias Connection

Connection: {
    approximateDistanceInMeters?: number;
    id: string;
    peer1: Address;
    peer2: Address;
    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: Address

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

  • peer2: Address

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

  • type: ConnectionType

    Type of transport enabling this connection.