Note: for support questions, please use one of these channels: stackoverflow or slack
You want to:
Current behaviour
#562 changed the way xhr.responseType is set. This line will throw an exception in Firefox, but it only seems to happen when run from a web worker.
InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable
Steps to reproduce (if the current behaviour is a bug)
See socketio/socket.io-client#1149 for a test case
Expected behaviour
Setting xhr.responseType shouldn't cause an error
Setup
- OS: Windows
- browser: Firefox 54.0.1
- engine.io version: 3.1.1
Other information (e.g. stacktraces, related issues, suggestions how to fix)