improves documentation
[src/app-framework-binder.git] / plugins / samples / HelloWorld.c
index 78a1eaf..fe11784 100644 (file)
@@ -54,8 +54,8 @@ static void pingBug (struct afb_req request)
 static void pingEvent(struct afb_req request)
 {
        json_object *query = afb_req_json(request);
-       afb_event_sender_push(afb_daemon_get_event_sender(interface->daemon), "event", query);
-       ping(request, json_object_get(query), "event");
+       afb_daemon_broadcast_event(interface->daemon, "event", json_object_get(query));
+       ping(request, query, "event");
 }