bug: ios safari 连接不上 websocket,其他android 浏览器正常

发布为 webMobile 时 ios safari 连接不上websocket ,表现形式为直接预览可以, 但是发布之后部署到服务器 不行,其他android 浏览器正常。
cocos creator 版本: 1.9.3
具体代码如下:


const {ccclass, property} = cc._decorator;

@ccclass
export default class Net extends cc.Component {


    @property(cc.Label)
    private label: cc.Label = null;

    start () {
        let self = this;
        let ws = new WebSocket("ws://echo.websocket.org");
        
        ws.onopen = function (event) {
            cc.log(JSON.stringify(event));
            self.label.string = self.label.string + "\nSend Text WS was opened.";
        };

        ws.onmessage = function (event) {
            self.label.string = self.label.string + "\nresponse text msg: " + event.data;
        };

        ws.onerror = function (event) {
            self.label.string = self.label.string + "\nSend Text fired an error:" + JSON.stringify(event);
        };

        ws.onclose = function (event) {
            self.label.string = self.label.string + "\nWebSocket instance closed.";
        };
       
        setTimeout(function () {
            if (ws.readyState === WebSocket.OPEN) {
                ws.send("Hello WebSocket, I'm a text message.");
            }
            else {
                self.label.string = self.label.string + "\nWebSocket instance wasn't ready...";
            }
        }, 3);

    }

    // update (dt) {}
}

自己服务器 转发的问题 …