Creator 版本 :3.52
浏览器 EDGE,chrome
Send(packet: string) {
console.log(’----this—’, this) //展开后 readyState = 1
console.log(’----this._client—’, this._client)//展开后 readyState = 1
console.log(’----this._client.readyState—’, this._client.readyState) //这里就是 0
if (this._client.readyState != WebSocket.OPEN) {
return
}
this._client.send(packet)
}