How can I know if the store/user make some action like a websocket

Topic summary

Goal: detect store/user actions (e.g., create/update/delete products, upload files) as they happen.

  • WebSockets: Not available in Shopify’s APIs, per one response. Clarification requested on the exact use case.

  • Webhooks: Useful for event notifications (e.g., order creation, customer signup, product updates), but not a full real-time monitor of all admin user interactions. They push on specific events rather than stream continuous activity.

  • “Real-time” options mentioned: One reply suggests using the GraphQL Admin API with GraphQL subscriptions to receive live updates for some events, noting coverage may be limited. Where subscriptions don’t exist, periodically poll Admin API (REST or GraphQL) on a schedule/background job to detect changes.

  • Custom UX approach: Build a custom app/extension for the Shopify admin that uses your own WebSocket or long‑polling backend to provide live UI updates based on detected changes.

Status/next steps: No native, general-purpose real-time socket feed. Clarify the exact actions needing monitoring and consult current Shopify docs for any newly supported real-time capabilities.

Summarized with AI on January 9. AI used: gpt-5.

I don’t know if for this case I can use Weebhook for know if the user currently be making some action like a create product, updating or removing, uploading file or any thing

in this cases how could I use this webhook or other way for know when the stores make changes in real time (like a web sockets)

The api does not use realtime websockets, no such thing.

Beyond that you need to more carefully describe what the goal is as the post description is hard to follow.

https://xyproblem.info/

@Juanestban

In Shopify, webhook is not the ideal solution for real-time monitoring of user actions such as creating, updating, or removing products, uploading files, etc. Webhooks in Shopify are primarily used for sending data from Shopify to an external service when specific events occur, such as order creation, customer signup, product updates, etc. They are not intended for real-time monitoring of user actions within the Shopify admin.

For real-time monitoring and interaction, Shopify provides the GraphQL Admin API which allows you to query Shopify’s data in real-time using GraphQL subscriptions. GraphQL subscriptions enable you to subscribe to specific events or changes happening in the store in real-time. However Shopify’s GraphQL API may not cover every specific action you’re interested in monitoring, and the available subscriptions might be limited.

To achieve real-time monitoring for user actions like creating products, updating, removing, or uploading files within the Shopify admin, you might need to periodically query the Shopify Admin API endpoints using GraphQL or REST APIs to check for changes. You can set up a scheduler or use a background job to regularly check for these changes and trigger actions accordingly.

Alternatively, if you are looking for real-time interactions within the Shopify admin, you might want to explore the use of JavaScript libraries or frameworks (like React, Vue.js) to build custom admin interfaces that use WebSocket connections or long-polling techniques to achieve real-time updates. This involves creating a custom app or extension within Shopify to provide real-time functionality based on user actions.

Be aware that the capabilities and available methods might have been updated or expanded in Shopify . It’s advisable to refer to the latest Shopify documentation or their developer resources to check for any new features or APIs that might facilitate real-time monitoring of user actions within the Shopify admin.

1 Like