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:

Parameter Type Description
partition string The partition string.
options? ElectronFromPartitionOptions | undefined Options used when creating a new session.

Returns: SessionThe session for the given partition.