Name | Type |
---|---|
T |
extends Transport |
• new Session<T
>(transport
, masterKey
, code
)
Name | Type |
---|---|
T |
extends Transport <any , any , T > |
Name | Type |
---|---|
transport |
T |
masterKey |
MasterKey |
code |
Uint8Array |
• Protected
code: Uint8Array
• Protected
masterKey: MasterKey
• Protected
transport: T
▸ send(request
): Promise
<TransportResponse
<T
>>
Name | Type |
---|---|
request |
TransportRequest <T > |
Promise
<TransportResponse
<T
>>
▸ toJSON(): any
any
▸ Static
fromJSON<T
>(transport
, json
): Promise
<Session
<T
>>
Name | Type |
---|---|
T |
extends Transport <any , any , T > |
Name | Type |
---|---|
transport |
T |
json |
any |
Promise
<Session
<T
>>
▸ Static
fromJSON<T
>(transportConstructor
, json
): Promise
<Session
<T
>>
Name | Type |
---|---|
T |
extends Transport <any , any , T > |
Name | Type |
---|---|
transportConstructor |
() => T |
json |
any |
Promise
<Session
<T
>>