How can a browser client consume a GraphQL subscription without libraries like Apollo or Relay?

Viewed 123

Assuming a GraphQL server has already implemented subscription operations, how could a browser client consume a subscription without the use of libraries like Apollo or Relay?

Using the WebSocket API, what are the steps required to consume a GraphQL subscription in the browser?

1 Answers

From my research, it seems that client side websocket implementations are quite specific to server implementations. Since I am using Elixir / Absinthe, I've found a JavaScript library made for my server's implementation.

Related