Skip to content

Any way to create custom subscriber? #496

Answered by klis87
BigBadAlien asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting topic. Indeed a custom driver is about implementing not only some custom behaviour, but you can do anything you like, even connect to an external API library, or work on pure promises, whatever you want. Subscribers are a little different, like you noticed, it already assumes WebSocket protocol. Creating subscriber of your own is about making it compatible with your WS server, be it GraphQL or anything else. It would be cool to make it support anything, but currently only WS are possible.

But, there is a hope. Perhaps it would be possible to create a WS adapter class? As you can see, you can pass WS to createSubscriber. What about trying to make a class implementing WS interfa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BigBadAlien
Comment options

Answer selected by BigBadAlien
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