-
Notifications
You must be signed in to change notification settings - Fork 309
API
Constructs a new SessionBuilder.
Parameter | Type | Description |
---|---|---|
store | SignalProtocolStore | The storage interface. |
address | SignalProtocolAddress | Remote address |
| Parameter | Type | Description |-----------------|-----------------| | preKeyBundle | Object | | @returns | Promise |
| Parameter | Type | Description |-----------------|-----------------| | record | SessionRecord | | preKeyWhisperMessage | Object |
Constructs a new SessionCipher.
Parameter | Type | Description |
---|---|---|
store | SignalProtocolStore | The storage interface. |
address | SignalProtocolAddress | Remote address |
| Parameter | Type | Description
|-----------------|-----------------|
| message | !Array.<(!ByteBuffer | !ArrayBuffer | !Uint8Array | string)> | Buffers to concatenate
| encoding | string | boolean | String encoding if buffers
contains a string ("base64", "hex", "binary", defaults to "utf8")
| Parameter | Type | Description
|-----------------|-----------------|
| message | !Array.<(!ByteBuffer | !ArrayBuffer | !Uint8Array | string)> | Buffers to concatenate
| encoding | string | boolean | String encoding if buffers
contains a string ("base64", "hex", "binary", defaults to "utf8")
| Parameter | Type | Description
|-----------------|-----------------|
| message | !Array.<(!ByteBuffer | !ArrayBuffer | !Uint8Array | string)> | Buffers to concatenate
| encoding | string | boolean | String encoding if buffers
contains a string ("base64", "hex", "binary", defaults to "utf8")