James Chen wrote:
XMLHttpRequest and WebSocket are both supported in cocos2d-x JSB (from v2.1.4).
I used node.js and socket.io to write my server side .And the port is 1000.
And I changed the WebSocketTest address “ws://echo.websocket.org” to “ws://localhost:1000”.
But it’s not successfull .And chrome console said “Unexpected response code 301/ _wsiError websocket instance closed./_wsiSendText websocket instance closed.”
I dont know why. It’s driving me crazy. Can u help?