Skip to content

Duplication of published messages to subscriptions #806

@ropwareJB

Description

@ropwareJB

Subscription messages are duplicated to the client, with the same id. Example in #805.

image
image

examples/yesod-pubsub/client  npm run start  3194ms  Tue 20 Dec 2022 12:09:02 AM AEDT

> client@1.0.0 start
> node src/index.js

(node:20809) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
>>> Result {"data":{"sub_counter":5}}
>>> Result {"data":{"sub_counter":5}}

However there should only be one subscription published AFAIK - my test script only sends one mutation:
https://github.com/morpheusgraphql/morpheus-graphql/pull/805/files#diff-d3cac501065597a12e90e1724d98ab3d1180885b5b0c5eacccd1debc5717b268R20

Metadata

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