ssbc / ssb-conn

SSB plugin for establishing and managing peer connections
MIT License
16 stars 5 forks source link

Enable/disable modes #1

Closed staltz closed 5 years ago

staltz commented 5 years ago

New APIs enable(mode: string) and disable(mode: string), where mode is either bt, lan, internet, room, etc.

Manyverse already has an API to disable bluetooth, so lets forward that to ssb-conn, which should (in the scheduler) unstage all bt peers.

OR instead of enable/disable which is more opinionated to how the scheduler works, we could provide a single API configure(opts: any) where opts can take any shape, and the scheduler can then read the opts.