ubus/lua: pass notification name to callback
[project/ubus.git] / lua / subscriber.lua
index e1d3a9f356c2d880053de85f94f3511643267e0f..f59448db72c5e233ce70c908df0ccf21791f31c3 100755 (executable)
@@ -15,8 +15,9 @@ if not conn then
 end
 
 local sub = {
-       notify = function( msg )
-               print("Count: ", msg["count"])
+       notify = function( msg, name )
+               print("name:", name)
+               print("  count:", msg["count"])
        end,
 }