Basic example to manage "context.getTagManager().subscribe"

Hi,

I’m looking for a basic example to manage an sql tag subsciption
with the context.getTagManager().subscribe.

the call for the subscribtion and the function to use for the datachange ?

Regards.