| 954 | } |
| 955 | |
| 956 | void SIOClient::fireEvent(const ccstd::string &eventName, const ccstd::string &data) { |
| 957 | CC_LOG_INFO("SIOClient::fireEvent called with event name: %s and data: %s", eventName.c_str(), data.c_str()); |
| 958 | |
| 959 | _delegate->fireEventToScript(this, eventName, data); |
| 960 | |
| 961 | if (_eventRegistry[eventName]) { |
| 962 | SIOEvent e = _eventRegistry[eventName]; |
| 963 | |
| 964 | e(this, data); |
| 965 | |
| 966 | return; |
| 967 | } |
| 968 | |
| 969 | CC_LOG_INFO("SIOClient::fireEvent no native event with name %s found", eventName.c_str()); |
| 970 | } |
| 971 | |
| 972 | void SIOClient::setTag(const char *tag) { |
| 973 | _tag = tag; |
no test coverage detected