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

Autoload not working #32

Open
Aedhen opened this issue Mar 29, 2018 · 0 comments
Open

Autoload not working #32

Aedhen opened this issue Mar 29, 2018 · 0 comments

Comments

@Aedhen
Copy link

Aedhen commented Mar 29, 2018

Hi,

Autoload does not appear to be working. In following piece of code, ‘msg’ will be undefined:

this.pubnub.subscribe({
      channels: channels,
      triggerEvents: ['message', 'status'],
      withPresence: false,
      autoload: 1 
});
this.pubnub.getMessage(channels, msg => this.doSomething(msg, callback));

When I replace the autoload with a timetoken however, I do get a result so my other code does work. Am I missing something or does autoload not work? I’m using pubnub-angular2 v1.3.0.

Thanks.

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