Directus Logo
  • The Data Engine and Studio
    • Connect
      Generate REST and GraphQL APIs instantly
    • Explore
      Browse and filter data in custom layouts
    • Editor
      Create and manage data in custom forms
    • Files
      Store and transform all your digital assets
    • Auth
      Protect your data with granular access control
    • Insights
      Visualize data within custom dashboards
    • Automate
      An automation builder for your data
    • Realtime
      Keep your data in sync with WebSockets
    Extend Your Toolkit
    Directus Marketplace

    Directus Marketplace

    Customize your data experience with extensions.

  • Build powerful apps and tools
    • Headless CMS
      Manage and deliver digital experience content
    • Backend-as-a-Service
      Simplify backend operations and scale
    • Product Management (PIM)
      A single source of truth for products
    • 100+ More Things To Build
      Looking for inspiration? Look no further
    • Startups
      Build fast, scale faster
    • Enterprise
      Secure, scalable composable architecture
    • Agencies
      Enhance your productivity and agency offerings
    • Government
      Dual-use platform for government applications
    Focus on the frontend
    Directus Cloud

    Directus Cloud

    Convenience and scalability without the stress.

  • Technical resources
    • Directus Docs
      Documentation on set-up and using Directus
    • API Reference
      Dynamic REST and GraphQL API docs
    • Tutorials and Guides
      Our developer blog for specific use cases
    • Quickstart Guide
      Get up and running quickly
    • Roadmap
      See what's on our product roadmap
    • Security
      Our commitment to security and compliance
    • GitHub
      Visit our repo on GitHub
    • Docker Hub
      Visit the official Directus Docker hub
    Open Source
    Visit our GitHub

    Visit our GitHub

    We're committed to the open source community.

  • Learning Center
    • Blog
      Read our latest articles and guides
    • Success Stories
      Case studies and success stories
    • Community
      Join our 10k member Discord community.
    • Events & Meetups
      See upcoming events and in-person meetups
    • About Us
      Learn more about Directus and the team
    • The Wall of Love
      See what others are saying about us
    • Contact
      Have a general inquiry or question for us?
    • Support
      Reach out to Directus support
    Watch Directus TV
    Directus TV
    Video

    Directus TV

    Go down the rabbit hole with hours of original video content from our team.

  • Pricing
Get DemoGet Started
GitHub logo25,762

Realtime

  1. Overview
  2. Features
  3. Docs

Stay ahead with real-time data.

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.

Create a projectView the docs

Keep your data current with WebSockets.

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. 

 

WebSockets, GraphQL subscriptions, or SDK

Use a standard WebSocket connection, subscribe over GraphQL, or use our SDK methods.

Full CRUD over WebSockets

Decrease complexity by creating, reading, updating, and deleting items using a single WebSockets connection.

Respects user permissions

Use various authentication schemes, and all requests use your configured permissions.

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.'
	})
);
client.sendMessage({
	type: 'items',
	collection: 'messages',
	action: 'read',
	query: { limit: 5, sort: '-date_created' },
});

Backed by your database

Unlike many realtime solutions, all data is persisted in your database by design. Never worry about state management again.

Combine with other tools in the Directus toolkit.

Whether you specialize in frontend, backend, or fullstack, you'll get a suite of dev tools that'll make you even more efficient.

Auth

Auth

Protect your data with granular access control systems.

Connect

Connect

Generate REST and GraphQL APIs for any database.

Insights

Insights

Visualize your data within robust and customizable dashboards.

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

Tom Smedley

Technical Director, Peter and Paul

Don't miss a beat with realtime data ⚡️

Dive into a seamless stream of real-time updates and elevate your data-driven decisions. 

Create your projectBook a demo
  • Directus LogoDirectus Logo

    A composable data platform to build your Headless CMS, BaaS, and more. 

  • Solutions
    • Headless CMS
    • Backend-as-a-Service
    • Product Information
    • 100+ Things to Build
  • Resources
    • Documentation
    • Guides
    • Community
    • Release Notes
  • Support
    • Issue Tracker
    • Feature Requests
    • Community Chat
    • Cloud Dashboard
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2024 Monospace Inc
  • Cloud Policies
  • License
  • Terms
  • Privacy
  • github
  • discord
  • youtube
  • docker
  • npm
  • x
  • mastodon
  • linkedin