You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all events are at cabal level, and there is no events emitted for adding/joining/removing cabal etc. It would be dope if we could have some events for the same at client level. Events on top of my head is:
joining cabal
creating cabal
leaving cabal
The text was updated successfully, but these errors were encountered:
const Client = require("cabal-client")
const client = new Client({/* opts */})
// which is e.g. used to create a cabal
client.createCabal().then(/* more stuff */)
so i guess this proposal would look something like
client.on("leave", ({ key /* anything else? */}) => /* do stuff in the on-leave */)
client.on("join", ({ key }) => ) // currently covered by cb here https://github.com/cabal-club/cabal-client/blob/master/src/client.js#L169
client.on("create" ({ key }) => ) // also covered by cb here https://github.com/cabal-club/cabal-client/blob/master/src/client.js#L169
some other interesting events at the client level:
Currently all events are at cabal level, and there is no events emitted for adding/joining/removing cabal etc. It would be dope if we could have some events for the same at client level. Events on top of my head is:
The text was updated successfully, but these errors were encountered: