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 | undefined): Session

Parameters:

ParameterTypeDescription
partitionstringThe partition string.
options?ElectronFromPartitionOptions | undefinedOptions used when creating a new session.

Returns: SessionThe session for the given partition.