Open
Description
Is your feature request related to a problem? Please describe.
- It seems this detection adds unnecessary complexity
- There have been https://github.com/mqttjs/MQTT.js/commits/main/src/lib/is-browser.ts quite a few fixes for it, there is lot of edge cases
- Chrome extension detection is bit flaky (some of this pain has been alleviated by feat:
timerVariant
option to choose between native and worker timers #1818) - The exception 'ws does not work in the browser' if I try connecting from a worker thread #1709
Describe the solution you'd like
Configurable by required option
mqtt.connect(credentials.endpoint, {
environment: 'browser', // 'react-native' 'electron' 'node'
})
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Metadata
Metadata
Assignees
Labels
No labels