Skip to content

Listening to Subscriptoin doesn't work #1406

Open
@cabiamdos

Description

This issue pertains to the following package(s):

  • [ x] GraphQL Playground - Electron App
  • GraphQL Playground HTML
  • GraphQL Playground
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

windows 10

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

v1.8.10

What is the expected behavior?

to listen to subscription. I am using graphql yoga server and it works in the graphqli provided by yoga-graphql in the browser but when listening to subscription in the graphql playground doesn't work

What is the actual behavior?

it doesn't do anything, it keeps loading

What steps may we take to reproduce the behavior?

create a simple graphql susbcription server in windows 10 with yoga graphql (https://the-guild.dev/graphql/yoga-server/docs/features/subscriptions#pubsub) and test in graphql playground the subscription. I am using the pubSub (publish/subscribe) pattern

Please provide a gif or image of the issue for a quicker response/fix.
-> Image with the problem (electron app not working, it keeps loading forever)
image

-> Image in the graphql browser showing it is working
image

Aditionally there is also another problem, when creating a new tab it creates with "localhost:4000/graphql" but this doesn't work, you need to manually add "http://" in order to work. And also a feature request to add new tabs with ctrl+t or close delete tabs with ctrl+w. Thanks

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions