graphql-subscriptions Questions

4

Hi am having this problem, i try to make subscriptions with graphql in nextjs, but something is wrong and i dont have any idea how fix it. I am having websocket error - "WebSocket connection t...
Bundestag asked 25/4, 2022 at 11:56

3

Solved

I'm trying to make real-time application based on websocket and got two options. One is socket.io and the other is GraphQL Subscriptions. But it was hard to find comparison of those. What can be st...
Lite asked 23/2, 2021 at 12:18

3

Solved

i try to setup GraphQL Subscriptions inside a next.js 9.x app. The app is totally fake, it is just for trying Apollo Server subscriptions. The "database" is just an array, where I push new users to...
Weinman asked 14/6, 2020 at 10:31

3

I'm using a passport local strategy that works well with express: passport.use(localStrategy); passport.serializeUser((user, done) => done(null, JSON.stringify(user))); passport.deserializeUser...

2

Solved

I'm trying to upgrade our NestJS GraphQL subscriptions server to utilize graphql-ws rather than the current subscriptions-transport-ws (as suggested by the NestJS documentation). I upgraded the Nes...
Krefeld asked 14/9, 2021 at 13:20

2

I want to make a subscription to a GraphQL server. The application is running in a NodeJS script (i.e. not in the webbrowser). Here is what I currently do: const fetch = require("node-fetch").def...

2

Solved

I am building a chat service and I want to handle the cases when the subscription(websocket) connection is disconnected. Apollo client is configured like bellow. I removed unnecessary code like cac...
Shrunk asked 8/6, 2021 at 7:30

2

Solved

I am trying to get a subscription up and running with ApolloServer (v 2.2.2). I had a setup that all-of-a-sudden just stopped working. When I try to connect to the subscription in graphiql/Playgrou...
Proulx asked 21/11, 2018 at 15:24

1

Solved

I have two sides. In one side I have direct usage of WebSocket protocol by using libraries/packages like ws (a Node.js WebSocket library) or Socket.io. Here I can use test tools to subscribe agains...
Maximamaximal asked 23/5, 2021 at 12:51

3

We are using GraphQL Subscriptions and pubsub to subscribe to posts. When more than 10 subscriptions occur we get the the node warning "MaxListenersExceededWarning: Possible EventEmitter memory le...
Florence asked 3/5, 2017 at 5:54

1

Solved

I have a GraphQL powered app. The query and mutation parts work well. I try to add GraphQL subscription. The server GraphQL subscription part code is inspired by the demo in the readme of apollogr...
Transliterate asked 19/7, 2019 at 0:48

0

I have been working with graphql subscriptions and have been able to implement it. It works fine without any issues when I host the same on local. But when I deploy it on a server with a idle_timeo...
Earthbound asked 26/3, 2020 at 22:37

0

I am using graphql-subscriptions to manage session (rooms). I have simple application like "chat". I can send message to chat using: import { PubSub } from 'graphql-subscriptions'; ... pubSub.p...
Motorbus asked 19/3, 2020 at 21:46

2

Solved

This past year I converted an application to use Graphql. Its been great so far, during the conversion I essentially ported all my services that backed my REST endpoints to back grapqhl queries and...
Moiety asked 27/12, 2018 at 21:7

2

We have implemented schema stitching where GraphQL server fetches schema from two remote servers and stitches them together. Everything was working fine when we were only working with Query and Mut...

0

I need a subscription to return initial state of a requested type. I have tasks system in my app, a task may have multiple states: CREATED, QUEUED, RUNNING, COMPLETED, CANCELLED, CANCELLING etc. ...
Meitner asked 27/9, 2019 at 16:57

0

A strange scenario with GraphQL. Let's say there is a Subscription called postIsRead, which signifies a post in a list of posts as currently being read, such as: Post: { id: 1, read: true } Onl...

0

Currently I'm using Socket.io / SignalR to emit an event from my backend message queue system, whenever new data is incoming. That way I can setup an event handler in my React application and updat...
Unmanly asked 4/8, 2019 at 20:15

1

Solved

I am trying to create a graphql client in Java project and I am using apollographql library. The problem is that I am not able to get the dependencies using the pom.xml with version different than ...
Entirely asked 22/5, 2019 at 23:16

1

I wanted to change the graphql websocket end point inside graphql, anyone know how to do this? by default it pings wss://localhost/graphql I need to change it to pusher url thanks :-)
Nebula asked 11/3, 2019 at 12:45

1

Solved

Im currently evaluating AWS AppSync as a backend solution for a messaging app. The users will have a view to explore new Chat Groups and a different view where they see a list of their joined and ...
Lye asked 10/9, 2018 at 11:57

3

I recently started working with GraphQL and have been able to successful set it up on AWS Lambda giving me a "serverless" architecture. However I would like to utilize GraphQL Subscriptions for mor...

1

Solved

I'm planning to use AWS Appsync to migrate a graphQL endpoint in a lambda function, which is being triggered by a POST via the API Gateway. I'm looking into AppSync mainly because of the subscripti...

1

I can't seem to understand the error I am getting on my client application. I am subscribing to a graphql subscription and I am able to retrieve the updates but I am not being able to push the chan...
Cowling asked 22/4, 2017 at 18:43

1

Solved

I have a query which gets me a list of notes and a subscription which listens and inserts new notes by altering the query. However the problem is the first note doesn't get added. So let me add mo...
Aventurine asked 9/4, 2017 at 8:29

© 2022 - 2024 — McMap. All rights reserved.