uncleDecart / nkv

Share your state between services using persisted key value storage with notification option
1 stars 0 forks source link

Add unsubscribe #18

Closed uncleDecart closed 1 month ago

uncleDecart commented 1 month ago

With that client can unsubscribe from updates of a value. Main change in API concerns the fact that now we store subscriptions not based on SocketAddr, but on client uuid, that a) abstracts us from TCP as a transport layer and b) gives easier flexibility to trace clients

Also this commit introduces sending Hello message to a client when it subscribes to a value, it removes any need for sleeps in any tests making async programming correct way

uncleDecart commented 1 month ago

This solves #17