Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetError expects channel in Typescript #31

Open
PauwelsBart opened this issue Mar 27, 2018 · 0 comments
Open

GetError expects channel in Typescript #31

PauwelsBart opened this issue Mar 27, 2018 · 0 comments

Comments

@PauwelsBart
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant