@metamask/sdk-communication-layer
Advanced tools
Comparing version 0.0.1-beta.2 to 0.0.1-beta.3
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import Socket from './Socket'; | ||
import WebRTC from './WebRTC'; | ||
export declare enum encryptionType { | ||
ECDH = "ECDH", | ||
ECIES = "ECIES" | ||
} | ||
export declare type DappMetadata = { | ||
@@ -20,3 +16,2 @@ url: string; | ||
transports?: string[]; | ||
encryption?: encryptionType; | ||
}; | ||
@@ -41,6 +36,5 @@ export declare enum CommunicationLayerPreference { | ||
transports: string[]; | ||
encryption: encryptionType; | ||
platform: string; | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, encryption, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, encryption, }: { | ||
constructor({ platform, commLayer, otherPublicKey, webRTCLib, reconnect, dappMetadata, transports, }: RemoteCommunicationOptions); | ||
setupCommLayer({ CommLayer, otherPublicKey, webRTCLib, commLayer, reconnect, }: { | ||
CommLayer: any; | ||
@@ -51,3 +45,2 @@ otherPublicKey: any; | ||
reconnect: any; | ||
encryption: any; | ||
}): void; | ||
@@ -54,0 +47,0 @@ clean(): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType, CommunicationLayerPreference } from '.'; | ||
import { CommunicationLayerPreference } from '.'; | ||
export default class Socket extends EventEmitter2 { | ||
@@ -11,8 +10,7 @@ socket: any; | ||
channelId: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
manualDisconnect: boolean; | ||
reconnect: boolean; | ||
commLayer: CommunicationLayerPreference; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, reconnect, commLayer, transports, encryption, }: { | ||
constructor({ otherPublicKey, reconnect, commLayer, transports }: { | ||
otherPublicKey: any; | ||
@@ -22,3 +20,2 @@ reconnect: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -25,0 +22,0 @@ receiveMessages(channelId: any): void; |
import { EventEmitter2 } from 'eventemitter2'; | ||
import KeyExchange from './KeyExchange'; | ||
import KeyExchangeECDH from './KeyExchange_ECDH'; | ||
import { encryptionType } from '.'; | ||
export default class WebRTC extends EventEmitter2 { | ||
@@ -13,3 +11,3 @@ handshakeDone: boolean; | ||
dataChannel: any; | ||
keyExchange: KeyExchange | KeyExchangeECDH; | ||
keyExchange: KeyExchange; | ||
RTCPeerConnection: any; | ||
@@ -19,4 +17,3 @@ RTCSessionDescription: any; | ||
reconnect: boolean; | ||
encryption: encryptionType; | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports, encryption, }: { | ||
constructor({ otherPublicKey, webRTCLib, commLayer, reconnect, transports }: { | ||
otherPublicKey: any; | ||
@@ -27,3 +24,2 @@ webRTCLib: any; | ||
transports: any; | ||
encryption?: encryptionType; | ||
}); | ||
@@ -30,0 +26,0 @@ setupWebrtc(): void; |
{ | ||
"name": "@metamask/sdk-communication-layer", | ||
"version": "0.0.1-beta.2", | ||
"version": "0.0.1-beta.3", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3611902
52
15226