-
Hi, I'm new to GraphQL and today I'm using this library to learn subscription. I followed the official doc and added graphql-ws to my project, with the example code. However, I keep getting the "Unhandled GraphQL subscription error ReferenceError: getSession is not defined" error on my console. Is there another library that I need to import? I googled but couldn't find it anywhere.. It would be good if the documentation can be clearer. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Ahhh, thanks for the clarification.
Luna
…On Apr 16, 2022, 22:19 +1000, Denis Badurina ***@***.***>, wrote:
getSession is a placeholder example function meant to be implemented by you, it doesn't exist in this library.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Sure, I'd love to! Just created a PR with some comments :)
Luna
…On 16 Apr 2022, 22:24 +1000, Denis Badurina ***@***.***>, wrote:
If you have suggestions on how to make this clearer in the example, I'd love to hear it! PRs are always welcome. 😄
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
getSession
is a placeholder example function that gets some session information meant to be implemented by you, it doesn't exist in this library.