Skip to main content
The get_session_id() method returns the unique session ID associated with your active sandbox connection.
This ID identifies the currently live session linked to your WebSocket connection.

get_session_id() -> Optional[str]

Description:
Returns the current sandbox session ID, or None if there is no active session.

Parameters:
None

Returns:
str or None : The session ID if connected, otherwise None.

Example