Skip to main content
Client for connections operations This client provides methods for interacting with the connections endpoints of the X API. It handles authentication, request formatting, and response parsing for all connections related operations.

Constructors

constructor

new ConnectionsClient(client): ConnectionsClient Creates a new connections client instance

Parameters

NameTypeDescription
clientClientThe main X API client instance

Returns

ConnectionsClient

Defined in

connections/client.ts:33

Methods

deleteAll

deleteAll(): Promise<KillAllConnectionsResponse> Terminate all connections Terminates all active streaming connections for the authenticated application.

Returns

Promise<KillAllConnectionsResponse> Promise resolving to the API response

Defined in

connections/client.ts:46