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

Subscribe message by conversation #29

Open
akiroz opened this issue Feb 10, 2017 · 4 comments
Open

Subscribe message by conversation #29

akiroz opened this issue Feb 10, 2017 · 4 comments

Comments

@akiroz
Copy link
Contributor

akiroz commented Feb 10, 2017

subscribe will listen on all conversation events.... That's rarely what we want in practice, it should filter out messages for a specific conversion just like subscribeTypingIndicator.

@chpapa
Copy link

chpapa commented Feb 10, 2017

I think it is more optional and maybe can be a parameter in subscribe? If the developers don't care about other conversation they can simply ignore it at the logic?

On the other hand, I'm not sure if that have any implication to server loading / scalability.

@akiroz
Copy link
Contributor Author

akiroz commented Feb 10, 2017

There are actually 2 versions of the typing indicator subscription: subscribeTypingIndicator and subscribeAllTypingIndicator, the first one filters by conversation and the 2nd one doesn't.
Kind of strange that there's only 1 subscribe (and I think it should be subscribeMessage).

@chpapa
Copy link

chpapa commented Feb 10, 2017

I agree subscribe is better renamed to subscribeMessage, found it odd when I first read it too.

@akiroz
Copy link
Contributor Author

akiroz commented Feb 10, 2017

but now we can't rename it since the product is launched....... better add the new function and then do:

subscribe(...) {
  console.warn('subscribe is deprecated, please use subscribeMessage instead');
  ...
}

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