mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-11 05:51:57 +00:00
Add early data field to connection return
This commit is contained in:
@ -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
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user