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

fix(browser): add navigator polifilly for wechat mini #1796

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Conversation

robertsLando
Copy link
Member

Fixes #1789

Copy link

codecov bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.59%. Comparing base (f064d48) to head (a34022e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1796   +/-   ##
=======================================
  Coverage   79.59%   79.59%           
=======================================
  Files          24       24           
  Lines        1421     1421           
  Branches      332      332           
=======================================
  Hits         1131     1131           
  Misses        209      209           
  Partials       81       81           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@robertsLando robertsLando merged commit c26908a into main Feb 26, 2024
8 checks passed
@robertsLando robertsLando deleted the fix-wechat branch February 26, 2024 09:21
EmixamPP added a commit to EmixamPP/MQTT.js that referenced this pull request Jul 25, 2024
…js#1796)"

This reverts commit c26908a.
since the polyfill hardcode navigator, it is impossible to determine the userAgent at runtime
robertsLando pushed a commit that referenced this pull request Jul 26, 2024
* Revert "fix(browser): add `navigator` polifilly for wechat mini (#1796)"

This reverts commit c26908a.
since the polyfill hardcode navigator, it is impossible to determine the userAgent at runtime

* doc(README): update WeChat instructions

* feat: add forceNativeWebSocket client option

* Revert "feat: add compatibility with txiki.js (#1895)"

This reverts commit 37b08c9.
Not special support for txiki.js is required thanks to forceNativeWebSocket client option

* style: unify import name IS_BROWSER -> isBrowser

* fixup! feat: add forceNativeWebSocket client option

style: fix lint

* fixup! fixup! feat: add forceNativeWebSocket client option

chore: remove test_store folder pushed
refactor: load protocols only once
refactor: use forceNativeWebSocket only for ws choice
doc(README): typo + update forceNativeWebSocket behaviour description
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

Successfully merging this pull request may close these issues.

[Bug]:
1 participant