I’m running into a critical issue with Socket.IO in Cocos Creator 3.8.6 while developing our game.
Cocos Creator always seems to use Engine.IO protocol version 3 (EIO=3) when establishing a connection — or at least that’s what it appears to be doing.
However, our backend server only supports EIO=4 due to other dependencies, and we cannot modify the server settings (setting allowEIO3: true
is not an option).
While developing the game, how can we force Cocos Creator to use socket.io-client
v4.x.x (EIO=4) to ensure a successful connection?
Any help or suggestions would be greatly appreciated!
Thanks in advance. @kylins @CocosMarketing @Tom_k @duygd