Package main of chat provides an example of using subscriptions to exchange messages using the TwiceDB API with interop between languages providing the same Clazz.