Any concept what is going on?
It doesn’t matter if i shut a socket from a server or from a shopper.
this.socket = new WebSocket(url)
this.socket.onclose = (ev: CloseEvent) => this.onClose(ev)
Right here the CloseEvent.code all the time is undefined
I checked solely iOS and Mac os.
Presently, a part of websocket APIs are usually not in consisence with normal interface. We’ ll examine and corret these a part of APIs.
You may monitor our progress via: Native implementation of WebSocket is just not the identical as net · Concern #12286 · cocos/cocos-engine · GitHub