cocos打包Apk,websocket找不到注册回调函数

使用cocos3d 1.2.0开发,在谷歌浏览器中测试,websocket方式连接没有问题,现在打包Android APK,websocket连接一直报错,E/jswrapper: ERROR: Uncaught TypeError: this.ws.addEventListener is not a function,

我是这样写的,请大神指点下,是我哪块做的不对吗?现在没思路了。
this.ws.addEventListener(“open”, this.onOpen);
this.ws.addEventListener(“message”, this.onMessage);
this.ws.addEventListener(“error”, this.onError);
this.ws.addEventListener(“close”, this.onClose);