how to use WebSocket in JSB 3.0?

In JSB 3.0, new WebSocket(“ws://url…”) , it says “WebSocket is not defined”.

Does this mean JSB 3.0 have not support WebSocket? If supported,how to use?

Some sample,please.Thanks.

Which version exactly are you using? because we recently released Cocos2d-JS v3.0 alpha which merged Cocos2d-html5 and Cocos2d-JSBinding. In this version we do support WebSocket