void P2pRpcConnection::onNotifyEvent(cstring event, const ObjectList& args) { if(eventMap.contain(event)){ //remote method name String method = eventMap.getDefault(event, ""); //this->cast(method, args); Headers headers; headers.put(KEY_RESPONSE, "true"); headers.put(KEY_CONTENT_TYPE, this->serializerType); ; sendEvent(headers, method, args); } }