Closed TheAschr closed 2 years ago
Is there any fix to it?
@coco-nebula please see https://github.com/socketio/socket.io-client/issues/1520#issuecomment-1008622475
This should be fixed by https://github.com/socketio/base64-arraybuffer/commit/d30e7cc877d6fd68555856b611e3f22940b00f4d, included in engine.io-parser@5.0.3
(and thus in latest socket.io-client
version, as it is a transitive dependency).
Steps to reproduce:
npx create-react-app my-app --template=typescript
.cd my-app
import io from 'socket.io-client';
anywhere in a .tsx fileio("/socket.io");
using that same .tsx filenpm start
Result:
Example repository:
https://github.com/TheAschr/socketio-compat