umi-plugin-apollo
umi-plugin-apollo copied to clipboard
Does it support to make subscriptions?
@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
.