eventFired is more of a method to translate native events to JS events,
instead of a handler

I suppose a more appropriate name would be "fireJSEvent"


On Wed, Feb 26, 2014 at 12:48 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()); };
>
> What's eventFired used for ?
> If it's needed, why not change it to onEventFired?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/5471/files#r10069143>
> .
>