PoSessionHandle
A handle to a session.
Properties
name: string
v1.0
Returns the name of this session.
Methods
add_dht_node(host: string, port: number): void
v1.0
Adds a node to the DHT routing table.
apply_settings(settings: LtSettingsPack): void
v1.0
Applies settings to this session. Some settings cannot be set, like user agent or peer fingerprint.
get_settings(): LtSettingsPack
v1.0
Gets all the settings for this session.
is_paused(): boolean
v1.0
Returns a value indicating whether this session is paused.
pause(): void
v1.0
Pauses the session.
resume(): void
v1.0
Resumes the session.
torrents(): PoTorrentsHandle
v1.0
Returns an object to find and iterate all torrents in this session.