pubnub / pubnub-angular2

Other
32 stars 13 forks source link

GetError expects channel in Typescript #31

Open PauwelsBart opened 6 years ago

PauwelsBart commented 6 years ago

In the read me you can find:

Catching trigger errors

pubnub.getError((err) => {
  console.log(err);
});

But when you want to do this with Typescript, you need to add a channel as parameter (See file pubnub-angular4.d.ts):

getError(channel: string | string[], callback: (error: any) => void): void;

Can this be done without a channel and just catch all errors?