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

Error responses from websocket are swallowed #14

Open
BBB opened this issue Jul 28, 2016 · 2 comments
Open

Error responses from websocket are swallowed #14

BBB opened this issue Jul 28, 2016 · 2 comments

Comments

@BBB
Copy link
Collaborator

BBB commented Jul 28, 2016

At the moment websocket error responses get swallowed and I have to manually inspect the messages to see what's wrong.

I've attempted to do:

collection.update(formData).subscribe(
  (d) => console.log('DONE', d),
  (err) => console.error(err),
)

Within my client code and changing

.forEach(this.handleData.bind(this, name)),
to:

this.subscriptions[name] = {
  subscription: query
    .watch()
    .subscribe(
      this.handleData.bind(this, name),
      err => console.error(err)
    }),
  query: query._query
};

Neither of these will receive the error response. It's also not received by handleData (

handleData = (name, docs) => {
)

Any guidance on how to go about this would be appreciated.

@BBB
Copy link
Collaborator Author

BBB commented Aug 3, 2016

@flipace I'm going to try to set up a better test case for this and dig into it today

@BBB BBB mentioned this issue Aug 3, 2016
@flipace
Copy link
Owner

flipace commented Aug 3, 2016

@BBB thanks for that. i'm busy with tons of other things atm and can't really look into it much right now.

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

No branches or pull requests

2 participants