Session.fromPartition method
Session › fromPartition
Unofficial
Returns a session instance from thepartition string, creating one with options if none exists. Signature:
fromPartition(partition: string, options?: ElectronFromPartitionOptions | undefined): SessionParameters:
| Parameter | Type | Description |
|---|---|---|
| partition | string | The partition string. |
| options? | ElectronFromPartitionOptions | undefined | Options used when creating a new session. |
Returns: Session — The session for the given partition.