ssbc / ssb-conn

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

Implement listen() API, for all events #5

Open staltz opened 5 years ago

staltz commented 5 years ago

Instead of ssb.conn.internalConnHub().listen(), perhaps we should do ssb.conn.listen('hub')? Not sure though. This is just an idea. The bigger question is whether we want internalConnHub() to be a public API of ssb-conn, or whether it's only meant for schedulers.