Add early data field to connection return

This commit is contained in:
Matija Petrunic 2020-04-17 10:36:29 +02:00
parent 6a1f17a2f6
commit 09c5df3b0d
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ export interface INoiseConnection {
export type SecureOutbound = {
conn: any;
earlyData: Uint8Array;
remotePeer: PeerId;
}

View File

@ -85,6 +85,7 @@ export class Noise implements INoiseConnection {
return {
conn,
earlyData: handshake.earlyData,
remotePeer: handshake.remotePeer,
}
}
@ -115,6 +116,7 @@ export class Noise implements INoiseConnection {
return {
conn,
earlyData: handshake.earlyData,
remotePeer: handshake.remotePeer
};
}