Hi salat,

First of all note that the subscribe method is only called when the first client subscribes to a certain item while the unsubscribe method is only called when the last client unsubscribes from the same item.

As an example:

Client 1 subscribes to Item A
subscribe A is called on the adapter
Client 2 subscribes to Item A
Client 1 unsubscribes from item A
Client 2 unsubscribes from item A
unsubscribe A is called on the adapter


To track clients subscriptions you need to implement a Metadata Adapter. You can use NotifyNewTables and NotifyTableClose (note that you need to enable WantsTableNotifications for such methods to be called).