cabal-club / cable

A lightweight peer-to-peer chat protocol.
https://cabal.chat
75 stars 4 forks source link

Can you use Cable to permission-lessly join and publish to a topic #27

Open Rinse12 opened 5 months ago

Rinse12 commented 5 months ago

I'm curious if Cable can be used like a pubsub, where anyone can join a topic, subscribe and publish to it. We're working on a decentralized social media protocol where each community have their own pubsub topic, and comments/votes are published to it.

You can read more about it here: https://github.com/plebbit/whitepaper

The whitepaper may be a bit outdated, but feel free to ask me any questions

hackergrrl commented 4 months ago

Hi @Rinse12.

Yes, it can. This could be done pretty readily from the cabal-core module, where the message event could be listened on.

I don't think that this implementation will scale well for long-lived pubsubs, since all previous messages will be synced and stored permanently (unless that's desirable!). The new work we're doing on Cable may be better aligned to your purposes, if it's ephemeral message passing.