gitcoinco/code_fund_ads

View on GitHub
app/javascript/channels/general_channel.js

Summary

Maintainability
A
0 mins
Test Coverage
import CableReady from 'cable_ready'
import consumer from './consumer'

consumer.subscriptions.create('GeneralChannel', {
  received (data) {
    if (data.cableReady) CableReady.perform(data.operations)
  }
})