mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-24 23:02:34 +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 = {
|
||||
conn: any;
|
||||
earlyData: Uint8Array;
|
||||
remotePeer: PeerId;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user