cocos2d-js3.0现在是否适合用来开发真实项目了?

另外请问,是不是而jsb还不可以用websocket。
在ios模拟器上,我用了new WebSocket,提示 websocket not defined。

Hi, @codin

Cocos2d-JS do support WebSocket, you can take a look at our test cases, in js-tests/src/ExtensionsTest/NetworkTest/WebSocketTest.js

Huabin

thanks.I resolve it.

When use “cocos new” to create a new js project ,the “AppDelegate.cpp” should add " #include “network/jsb_websocket.h and sc->addRegisterCallback(register_jsb_websocket);”

then ,we can use WebSocket in jsb.

Ah yeah, that’s because web socket is an extension to our engine, so you must include it manually.