ReferenceRakNet

raknet.is_enabled

Reports whether RakNet functionality is enabled for this session.

Syntax

raknet.is_enabled() -> boolean

Returns

TypeDescription
booleanWhether this session enables the library.

Description

Availability depends on the selected engine build and session support. A true result does not mean a network peer is already connected. Check raknet.diagnostics when an operation declines; do not treat unsupported behavior as an empty packet stream.

Example

print(raknet.is_enabled())

These are Game executor contracts. Check build requirements and session lifetimes before using them.