Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscriptions listen-method not available #78

Closed
CemYil03 opened this issue Jul 11, 2022 · 1 comment
Closed

Subscriptions listen-method not available #78

CemYil03 opened this issue Jul 11, 2022 · 1 comment

Comments

@CemYil03
Copy link

Trying to make a subscription I discovered, that listen is not a method available after import SwiftGraphQL. Instead it tries to use a listen function with the following signature: listen(Int32, Int32) -> Int32

Maybe it is just about declaring it public?

A reproduction should be simple. Sadly there was also no example in the examples directory. If I am doing something wrong maybe it would be nice to see an example there. The one from the documentation simply does not work for me.

@maticzav
Copy link
Owner

maticzav commented Aug 4, 2022

👋 the new version ships with a full-blown WebSocket client. You can read more about it at https://www.swift-graphql.com/docs/subscriptions.

I am going to close the issue but feel free to comment on it and even reopen it, if you need more help 🙂

@maticzav maticzav closed this as completed Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants