{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/apollo-link/issues/725","repository_url":"https://api.github.com/repos/apollographql/apollo-link","labels_url":"https://api.github.com/repos/apollographql/apollo-link/issues/725/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-link/issues/725/comments","events_url":"https://api.github.com/repos/apollographql/apollo-link/issues/725/events","html_url":"https://github.com/apollographql/apollo-link/issues/725","id":343092154,"node_id":"MDU6SXNzdWUzNDMwOTIxNTQ=","number":725,"title":"Unhandled GraphQL subscription error TypeError: this.nextLink is not a function","user":{"login":"TheoMer","id":15969262,"node_id":"MDQ6VXNlcjE1OTY5MjYy","avatar_url":"https://avatars2.githubusercontent.com/u/15969262?v=4","gravatar_id":"","url":"https://api.github.com/users/TheoMer","html_url":"https://github.com/TheoMer","followers_url":"https://api.github.com/users/TheoMer/followers","following_url":"https://api.github.com/users/TheoMer/following{/other_user}","gists_url":"https://api.github.com/users/TheoMer/gists{/gist_id}","starred_url":"https://api.github.com/users/TheoMer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheoMer/subscriptions","organizations_url":"https://api.github.com/users/TheoMer/orgs","repos_url":"https://api.github.com/users/TheoMer/repos","events_url":"https://api.github.com/users/TheoMer/events{/privacy}","received_events_url":"https://api.github.com/users/TheoMer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T12:38:55Z","updated_at":"2018-07-20T13:53:16Z","closed_at":"2018-07-20T13:53:16Z","author_association":"NONE","body":"OS: Windows 10 Pro   \r\napollo-link-retry: ^2.2.4\r\n\r\nIncorporating the following code generates the above mentioned error (see attached image):\r\n\r\n```\r\nimport { RetryLink } from \"apollo-link-retry\"\r\nconst retryLink = new RetryLink()\r\n\r\nconst link = split(\r\n  // split based on operation type\r\n  ({ query }) => {\r\n    const { kind, operation } = getMainDefinition(query)\r\n    return kind === 'OperationDefinition' && operation === 'subscription'\r\n  },\r\n  retryLink,\r\n  wsLink,\r\n  httpLinkAuth,\r\n)\r\n```\r\n\r\nWhat am I overlooking here?\r\n\r\n![error](https://user-images.githubusercontent.com/15969262/43002807-0b312c68-8c22-11e8-880c-91d8e852728f.jpg)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apollographql/apollo-link/issues/comments/406607230","html_url":"https://github.com/apollographql/apollo-link/issues/725#issuecomment-406607230","issue_url":"https://api.github.com/repos/apollographql/apollo-link/issues/725","id":406607230,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjYwNzIzMA==","user":{"login":"TheoMer","id":15969262,"node_id":"MDQ6VXNlcjE1OTY5MjYy","avatar_url":"https://avatars2.githubusercontent.com/u/15969262?v=4","gravatar_id":"","url":"https://api.github.com/users/TheoMer","html_url":"https://github.com/TheoMer","followers_url":"https://api.github.com/users/TheoMer/followers","following_url":"https://api.github.com/users/TheoMer/following{/other_user}","gists_url":"https://api.github.com/users/TheoMer/gists{/gist_id}","starred_url":"https://api.github.com/users/TheoMer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheoMer/subscriptions","organizations_url":"https://api.github.com/users/TheoMer/orgs","repos_url":"https://api.github.com/users/TheoMer/repos","events_url":"https://api.github.com/users/TheoMer/events{/privacy}","received_events_url":"https://api.github.com/users/TheoMer/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T13:53:16Z","updated_at":"2018-07-20T13:53:16Z","author_association":"NONE","body":"So, I managed to resolve the issue by doing:\r\n\r\n```\r\nconst client = new ApolloClient({\r\n  link: ApolloLink.from([\r\n    retryLink,\r\n    link\r\n  ]),\r\n  ....,\r\n})"}}
{"actor":{"display_login":"TheoMer"}}