Skip to content

Conversation

@osmanhadzic
Copy link
Contributor

@osmanhadzic osmanhadzic commented Dec 3, 2025

Add GraphQL subscriptions to notify clients in real-time about device connection status changes and tag updates. This enhancement improves the responsiveness of the frontend application by allowing it to react immediately to relevant device events.

Screenshots image image

Add GraphQL subscriptions to notify clients in real-time about device
connection status changes and tag updates. This enhancement improves
the responsiveness of the frontend application by allowing it to react
immediately to relevant device events.

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
- Added dependencies for @absinthe/socket, @absinthe/socket-relay,
and @apollo/client in package.json.
- Implemented a custom subscribe function using WebSocket for handling
 subscriptions in index.ts.
- Updated GraphQL schema to include RootSubscriptionType and various
 subscription result types.
- Modified Vite configuration to exclude @apollo/client from dependency
 optimization.

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
@osmanhadzic osmanhadzic force-pushed the feature/implement-graphql-sub branch from 8e14f1c to 45fbae5 Compare December 3, 2025 14:33
Update list of devices in real-time when a new device is created or
updated without needing to refresh the page.

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
@osmanhadzic osmanhadzic marked this pull request as ready for review December 4, 2025 13:08
@osmanhadzic osmanhadzic changed the title [WIP] feat: implement GraphQL subscriptions for device events feat: implement GraphQL subscriptions for device events Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant