How to use the aws-appsync.buildSubscription function in aws-appsync

To help you get started, we’ve selected a few aws-appsync examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pjay79 / BarsAppAmplify / app / features / App / Bars / Favourites / containers / AllBarsList.js View on Github external
componentDidMount() {
    const { data } = this.props;
    data.subscribeToMore(buildSubscription(gql(CreateBarSubscription), gql(ListBars)));
  }
github dabit3 / hype-beats / src / Machines.js View on Github external
useEffect(() => {
    props.data.subscribeToMore(
      buildSubscription(onCreateDrumMachine, listDrumMachines)
    )
  })