0

Can anyone tell me why this code

handleCDC(response) {
    console.log(JSON.stringify(response));
}

subscribe(channel, -1, handleCDC).then(response=>{
    console.log('success', JSON.stringify(response.channel));
});    

is illegal? why I can't call subscribe method directly?

2
  • 1
    what is channel and where is it declared? Commented Dec 16, 2019 at 10:02
  • channel declared earlier in this model. I can't just compile this code
    – pincet
    Commented Dec 16, 2019 at 10:13

0

You must log in to answer this question.

Browse other questions tagged .