How to add GraphQL subscriptions in Node.js

GraphQL subscriptions enable real-time data updates by maintaining persistent WebSocket connections between clients and servers for push-based event notifications. As the creator of CoreUI, a widely used open-source UI library, I’ve implemented real-time features in collaborative dashboards throughout my 12 years of development experience since 2014. The most effective approach is using graphql-ws library with PubSub pattern for managing subscriptions and broadcasting events to connected clients. This method provides standards-compliant WebSocket protocol, automatic connection management, and scalable event distribution for real-time applications.

Read More…

How to use Vue with GraphQL subscriptions

GraphQL subscriptions enable real-time data updates in Vue applications through WebSocket connections for live queries and data streaming. With over 12 years of Vue.js experience since 2014 and as the creator of CoreUI, I’ve implemented real-time GraphQL features in enterprise dashboards. Apollo Client provides Vue integration with subscription support, automatically updating reactive queries when server data changes. This approach creates live applications with automatic data synchronization without manual WebSocket management.

Read More…