Tag: socket.io
-
How do I use web socket inside a graphql mutation using socket.io and expressGraphQL?
0 `I have been trying to emit an event to a specific user using socket.io when a specific mutation is called I tried to use this on my main server file: const graphqlMiddleware = expressGraphQL((req, res) => ({ schema, graphiql: __DEV__, rootValue: { request: req, response: res, }, pretty: __DEV__, })); app.use("/graphql", graphqlMiddleware); let server…