channel message

This message is used to subscribe and unsubscribe from channels. Be aware that subscribing to a channel doesn’t affect gossiping. Subscriptions are mostly hints used by applications when they need to figure out what to show to their user. A common practice for an application is to show a public feed to the user containing the messages from their followers and the messages in the channels they subscribed to.

What does it looks like?

{
  "key": "%bh8KkBLWTK6iAUJ3u4g2bfkye40m4vNw3+D6UFi8=.sha256",
  "value": {
    "previous": "%y+XwGARQFqvlMRnwfberbwr5+93pskchI+h/A=.sha256",
    "sequence": 179,
    "author": "@zVgfPY/wrpkjebfbkjqlDderiZr7jCbOpR1k=.ed25519",
    "timestamp": 1560279944413,
    "hash": "sha256",
    "content": {
      "type": "channel",
      "channel": "p2p-berlin",
      "subscribed": true
    },
    "signature": "958n47tZTbwmDLjCcunaR9F18zAHOJeMt01P02OrPzaS9y6cjXpeq5/uh9zDhzfVCt5I4hsukLXkdjOSVZNMAQ==.sig.ed25519"
  },
  "timestamp": 1560279947258,
  "rts": 1560279944413
}

On the message above you can see that the author subscribed to the channel called p2p-berlin. The subscribed field is a boolean that indicates if the author is subscribing or unsubscribing from the channel.