Monday, August 1, 2022
HomeGame DevelopmentNative websocket shut code is all the time undefined. v3.5.2 - Cocos...

Native websocket shut code is all the time undefined. v3.5.2 – Cocos Creator


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

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments