---title: RealtimeClient---import MethodOff from ../../_common/_method_off.mdx;import MethodOn from ../../_common/_method_on.mdx;import MethodOnce from ../../_common/_method_once.mdx;import MethodRemoveAllListeners from ../../_common/_method_removealllisteners.mdx;:::caution DeprecatedIts no longer needed to create the client manually. You can use the product constructors, like [Video.Client](../video/video-client.mdx), to access the same functionality.:::A real-time Client.To construct an instance of this class, please use [createClient](../00-realtime-sdk-reference.mdx#createclient).Example usage:typescriptimport { createClient } from @signalwire/realtime-api;// Obtain a client:const client = await createClient({ project, token });// Listen on events:client.video.on(room.started, async (room) => {});// Connect:await client.connect();## Properties## Methods### ~~connect~~▸ **connect**(): Promise<[RealtimeClient](./)\>Connects this client to the SignalWire network.As a general best practice, it is suggested to connect the event listeners _before_ connecting the client, so that no events are lost.#### ReturnsPromise<[RealtimeClient](./)\>Upon connection, asynchronously returns an instance of this same object.#### Exampletypescriptconst client = await createClient({ project, token });client.video.on(room.started, async (roomSession) => {}); // connect eventsawait client.connect();---### ~~disconnect~~▸ **disconnect**(): voidDisconnects this client from the SignalWire network.#### Returnsvoid---### ~~off~~