Skip to content

Unknown parameter and typescript? #3

Answered by enisdenjo
bryiac asked this question in Q&A
Discussion options

You must be logged in to vote

Hey so i see with the useWebsocket function you're passing in a parameter called subprotocol though it is never really defined what exactly is that

It's the WebSocket subprotocol. GraphQL over WebSocket Protocol requires it to be graphql-transport-ws.

Also on that note what would be the proper typings for this stuff like makeServer has generics etc its honestly a real mess to work with in typescript

You can see what the generics mean in the documentation for server.ServerOptions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bryiac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants