WebSockets, GraphQL subscriptions, or SDK
Use a standard WebSocket connection, subscribe over GraphQL, or use our SDK methods.
Connect to Directus and subscribe to updates in a collection, and get notified when there's an update to show your users. Increase trust in your data, lower the build complexity.
Don't worry about data falling out of sync again. Directus connects directly to your database and emits events to connected clients when database changes occur.
import { createDirectus, rest, createItem } from '@directus/sdk';
const client = createDirectus('https://xyz.directus.app').with(rest());
const item = await client.request(
createItem('articles', {
title: 'Hello, world!',
summary: 'This is my next big thing.'
})
);
Unlike many realtime solutions, all data is persisted in your database by design. Never worry about state management again.
Whether you specialize in frontend, backend, or fullstack, you'll get a suite of dev tools that'll make you even more efficient.
Our interactive app must access and serve up data in real time, and that’s something I don’t think we can achieve without Directus.
Tom Smedley
Technical Director, Peter and Paul
Dive into a seamless stream of real-time updates and elevate your data-driven decisions.