umi-plugin-apollo icon indicating copy to clipboard operation
umi-plugin-apollo copied to clipboard

Does it support to make subscriptions?

Open petchpool opened this issue 5 years ago • 1 comments

petchpool avatar Mar 25 '19 04:03 petchpool

@9wisit, yes you can use subscriptions by adding the subscription link on the options file extraLinks export.

// options.js

const wsLink = new WebSocketLink({
  uri: `ws://localhost:5000/`,
  options: {
    reconnect: true
  }
});

export const extraLinks = [
  wsLink
];

I think we can find a pattern to do this configurable on .umirc.js.

lemol avatar Mar 25 '19 10:03 lemol