Directus / @directus/sdk / realtime / realtime
Function: realtime() ​
realtime(
config
): <Schema
>(client
) =>WebSocketClient
<Schema
>
Creates a client to communicate with a Directus REST WebSocket.
Parameters ​
• config: WebSocketConfig
= {}
The optional configuration.
Returns ​
Function
A Directus realtime client.
Type parameters ​
• Schema
Parameters ​
• client:
DirectusClient
<Schema
>Returns ​
WebSocketClient
<Schema
>