cocos2d/cocos2d-x — pull request #5232 by floatinghotpot (2014-01-26 08:02:46+00:00)
Title: Update WebSocket.cpp

bufix: when connecting fail, libwebsocket_client_connect() will return NULL, and onSocketCallback() will not be called, so we need trigger WS_MSG_TO_UITHREAD_ERROR here.