message: Disable websockets when rendering server side
diff: @@ -27,6 +27,7 @@ const ApiConnection = ({ children }) =>
  },
  })
  + const HttpWebsocketLink = () => {
  const wsLink = new WebSocketLink({
  uri: publicRuntimeConfig.GRAPHQL_API.replace(/https/, 'wss').replace(/http/, 'ws'),
  options: {
  @@ -37,7 +38,7 @@ const ApiConnection = ({ children }) =>
  },
  });
  - const requestLink = ApolloLink.split(
  + return ApolloLink.split(
  ({ query }) => {
  const { kind, operation } = getMainDefinition(query);
  return kind === 'OperationDefinition' && operation === 'subscription';
  @@ -45,6 +46,7 @@ const ApiConnection = ({ children }) =>
  wsLink,
  httpLink
  );
  + }
  const client = new ApolloClient({
  link: ApolloLink.from([
  @@ -57,7 +59,8 @@ const ApiConnection = ({ children }) =>
  );
  if (networkError) console.log(`[Network error]: ${networkError}`);
  }),
  - requestLink
  + // Disable websockets when rendering server side.
  + process.browser ? HttpWebsocketLink() : httpLink
  ]),
  cache: new InMemoryCache()
  });
  