go-textile
go-textile copied to clipboard
Add invite as a type of event you can subscribe to
Is your feature request related to a problem? Please describe.
I would love to be able to subscribe to invite events.
Describe the solution you'd like To use the subscription api to handle invites
Describe alternatives you've considered Polling the invites api:
const listenAndAcceptInvites = () => {
setTimeout(async () => {
const invites = await textile.invites.list()
// filter through invites list, and accept any
listenAndAcceptInvites()
}, 5000)
}