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

realtime: fix bug #332

Merged
merged 2 commits into from
Oct 31, 2018

Conversation

etrousset
Copy link
Member

What does this PR do?

This PR makes realtime::subscribe javascript API consistent with other langages.

Instead of resolving to the object { channel: 'foo', roomId: 'bar' }, it resolves to 'bar'

How should this be manually tested?

You can now unsubscribe directly with the result of subscribe

-fixed bug where subscribe would return a Room instead of just
the roomId
-fixed test accordingly
@codecov-io
Copy link

codecov-io commented Oct 31, 2018

Codecov Report

Merging #332 into 6-dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##            6-dev     #332   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files          28       28           
  Lines        1395     1395           
=======================================
  Hits         1360     1360           
  Misses         35       35
Impacted Files Coverage Δ
src/controllers/realtime/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94eb653...6fe99d4. Read the comment docs.

@alexandrebouthinon alexandrebouthinon merged commit 8cd9f2c into 6-dev Oct 31, 2018
@alexandrebouthinon alexandrebouthinon deleted the KZL-788-subscribe-shall-return-the-roomId branch October 31, 2018 10:03
@etrousset etrousset restored the KZL-788-subscribe-shall-return-the-roomId branch October 31, 2018 10:09
@etrousset etrousset deleted the KZL-788-subscribe-shall-return-the-roomId branch October 31, 2018 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants