It is called from the native codes on line 446 of cocos/network/SocketIO.h,
if it isn't declared in the parent class for JSB_SocketIODelegate then it
fails

On Wed, Feb 26, 2014 at 12:57 AM, James Chen <notifications@github.com>wrote:

> In cocos/network/SocketIO.h:
>
> > @@ -92,6 +94,7 @@ class SocketIO
> >          virtual void onMessage(SIOClient* client, const std::string& data) = 0;
> >          virtual void onClose(SIOClient* client) = 0;
> >          virtual void onError(SIOClient* client, const std::string& data) = 0;
> > +		virtual void eventFired(SIOClient* client, const std::string& eventName, const std::string& data) { CCLOG("SIODelegate event '%s' fired with data: %s", eventName.c_str(), data.c_str()); };
>
> Got it. By why not make it as the member function of JSB_SocketIODelegate?
> Because only that class use it. c++ don't need this function. Right?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/5471/files#r10069251>
> .
>