Utility Methods

GetEventLoop

client.GetEventLoop()

Get the asyncio event loop which is attached to the client instance.

RunAsync

client.RunAsync(tasks)

Run the given list of tasks/coroutines asynchronously.

Parameters

Name Type Description

tasks

list

A list of tasks or coroutines which will be run asynchronously

GetConnectionInfo

client.GetConnectionInfo()

Provides the following connection information for the WebSocket connection:

  • Session ID

  • Authentication status

  • Connection state (numerical)

  • Connection state (meaning)

  • Ready state