VueApollo refresh the websocket connection

I use graphql subscription through websocket, with VueApollo.

apolloClient = new ApolloClient({
link: split(
  ({ query }) => {
    const definition = getMainDefinition(query)
    return definition.kind === 'OperationDefinition' && definition.operation === 'subscription'
  new WebSocketLink({
    uri: wsUri,
    options: {
      reconnect: true

When a user is logged out, I would expect the websocket to somehow be disconnected, and then reconnected with the new credentials when logged in again. But in reality, the same websocket connection is used for different users, what makes the subscription problematic in terms of authentication.

Can you offer a way to “reconnect” with new cookie/token?