text: /* File: addGraphQLSubscriptions.js */
  
  import { print } from 'graphql-tag/printer';
  
  // quick way to add the subscribe and unsubscribe functions to the network interface
  export default function addGraphQLSubscriptions(networkInterface, wsClient) {
    return Object.assign(networkInterface, {
      subscribe(request, handler) {
        return wsClient.subscribe({
          query: print(request.query),
          variables: request.variables,
        }, handler);
      },
      unsubscribe(id) {
        wsClient.unsubscribe(id);
      },
    });
  }
  
  /* End of file: addGraphQLSubscriptions.js */