Skip to content

Session.fromPartition method

Session › fromPartition

Unofficial

Returns a session instance from the partition string, creating one with options if none exists.

Signature:

fromPartition(partition: string, options?: ElectronFromPartitionOptions): Session

Parameters:

ParameterTypeDescription
partitionstringThe partition string.
options?ElectronFromPartitionOptionsOptions used when creating a new session.

Returns: Session — The session for the given partition.