Directus Logo
  • The Directus Toolkit
    • 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
    • code_blocks
      Headless CMS
      Manage and deliver digital experience content
    • speed
      Backend-as-a-Service
      Simplify backend operations and scale
    • shopping_cart_checkout
      Product Management (PIM)
      A single source of truth for products
    • lightbulb
      100+ More Things To Build
      Looking for inspiration? Look no further
    • rocket_launch
      Startups
      Build fast, scale faster
    • apartment
      Enterprise
      Secure, scalable composable architecture
    • autopay
      Agencies
      Enhance your productivity and agency offerings
    • account_balance
      Government
      Dual-use platform for government applications
    Focus on the frontend
    Directus Cloud

    Directus Cloud

    Convenience and scalability without the stress.

  • Technical resources
    • menu_book
      Directus Docs
      Documentation on set-up and using Directus
    • api
      API Reference
      Dynamic REST and GraphQL API docs
    • slideshow
      Tutorials and Guides
      Our developer blog for specific use cases
    • avg_pace
      Quickstart Guide
      Get up and running quickly
    • map
      Roadmap
      See what's on our product roadmap
    • security
      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
    • library_books
      Blog
      Read our latest articles and guides
    • magic_button
      Success Stories
      Case studies and success stories
    • video_library
      Videos
      Watch our latest videos and how-tos
    • event
      Events & Meetups
      See upcoming events and in-person meetups
    • supervised_user_circle
      About Us
      Learn more about Directus and the team
    • heart_plus
      The Wall of Love
      See what others are saying about us
    • mark_email_unread
      Contact
      Have a general inquiry or question for us?
    • support
      Support
      Reach out to Directus support
    Join our community
    Join our 10k+ Member Discord

    Join our 10k+ Member Discord

    Get community support, see what others are building, and more.

  • Pricing
Book a DemoCreate a Project
starStar us on GitHub
arrow_backBack
product
Tuesday, June 13, 2023

Real-Time Without The Headaches: Introducing WebSockets With Directus

With WebSockets, you can build real-time features into your projects backed by your Directus-managed database.
Real-Time Without The Headaches: Introducing WebSockets With Directus

This is a big day for our users and community as Directus 10.3 introduces a new way to work with your data - WebSockets. With WebSockets, you can build real-time features into your projects backed by your Directus-managed database.

Wait, What Are WebSockets?

WebSockets are a new way to connect to Directus projects with code, and allow your applications to 'subscribe' to updates that happen to your data. Changes are pushed instantly to your users without the need for refreshing or polling.

Our implementation works by emitting events that happen in your database, so you don't have to worry about managing data persistence. What's in your Directus project is always the one-true-source of data.

You can check out our docs for our real time features here.

What Can You Build?

What makes this even cooler is that our WebSockets implementation isn't just read-only, but also allows you to send create, update, and delete operations over the same WebSocket connection. This means that you can build things like live chats, data dashboards, and notification systems and be confident that the data you have is up-to-date.

Use GraphQL? We Got You.

If you're considering using GraphQL to handle real-time data in your application, we have the tools to help. In addition to offering a standard WebSocket interface, our platform also provides support for GraphQL Subscriptions. If this is your path, then learn how to get started with Directus GraphQL Subscriptions.

Get Started Today!

We are thrilled to see the projects you will build with this new feature, and look forward to building it out further based on community feedback. Looking for a fun small project to get started? Build a multi-user chat with full persistence backed by Directus.

Posted By

Matt Minor

Matt Minor

Director, Demand Generation

Share

LinkedIn LogoTwitter LogoReddit LogoDev.to Logo
  • Directus Logo

    A modern backend toolkit for building anything or everything.

  • 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 Status
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2023 Monospace Inc
  • License
  • Terms
  • Privacy
  • github
  • discord
  • youtube
  • docker
  • npm
  • x
  • mastodon
  • linkedin