mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 14:02:19 +00:00
Add early data field to connection return
This commit is contained in:
parent
6a1f17a2f6
commit
09c5df3b0d
@ -14,6 +14,7 @@ export interface INoiseConnection {
|
|||||||
|
|
||||||
export type SecureOutbound = {
|
export type SecureOutbound = {
|
||||||
conn: any;
|
conn: any;
|
||||||
|
earlyData: Uint8Array;
|
||||||
remotePeer: PeerId;
|
remotePeer: PeerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ export class Noise implements INoiseConnection {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
conn,
|
conn,
|
||||||
|
earlyData: handshake.earlyData,
|
||||||
remotePeer: handshake.remotePeer,
|
remotePeer: handshake.remotePeer,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,6 +116,7 @@ export class Noise implements INoiseConnection {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
conn,
|
conn,
|
||||||
|
earlyData: handshake.earlyData,
|
||||||
remotePeer: handshake.remotePeer
|
remotePeer: handshake.remotePeer
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user