微信小程序升级生成多端应用模式之后 接口调用正常 但是WebSocket缺无法使用
下面是报错信息
MiniProgramError
Cannot read properties of undefined (reading 'onOpen')
TypeError: Cannot read properties of undefined (reading 'onOpen')
at bi.initWebSocket (https://usr/pages/index/index.appservice.js:2:1095)
at bi.onLoad (https://usr/pages/index/index.appservice.js:2:321)
at bi. (WASubContext.js:1:451955)
at l.__callPageLifeTime__ (WASubContext.js:1:451748)
at WASubContext.js:1:463841
at WASubContext.js:1:423314
at WASubContext.js:1:464400
at WASubContext.js:1:423314
at WASubContext.js:1:470076
at WASubContext.js:1:423314
network SDK开启了吗