go-textile icon indicating copy to clipboard operation
go-textile copied to clipboard

Add invite as a type of event you can subscribe to

Open Schwartz10 opened this issue 6 years ago • 0 comments

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)
}

Schwartz10 avatar May 07 '19 02:05 Schwartz10