16 lines
234 B
TypeScript
Raw Normal View History

2019-11-08 14:03:34 +01:00
type PeerId = {
id: string,
privKey: string,
pubKey: string,
};
type ConnectionStat = {
direction: "inbound" | "outbound",
}
export interface Connection {
localPeer: PeerId,
remotePeer: PeerId,
stat: ConnectionStat,
}