fixed #1647: Adding WebSocket support for Cpp and JSB. [master]