CC 3.3.1 cannot connect to wss on Android – #7 by dev_tienhung – Cocos Creator

my code looks like this:
import part
import io from ‘…/…/plugins/’;

connect part
this._socket = io(url, {

        transports: ['websocket'],

        reconnection: true,

        forceNew : true,

        reconnectionAttempts : 10,

        reconnectionDelay : 500,

        randomizationFactor : 0,

        rememberUpgrade : true,

        timestampRequests : true


sorry I can’t give you more detail about URL because it will contain internal token. I tried to make a sample project but can’t make it work on any platform (609.2 KB)
please take a look! I’m very appreciate

Source link

More To Explore

Share on facebook
Share on twitter
Share on linkedin
Share on email