Optionalsession: MaybeRefOrGetter<GraffitiSession | null | undefined>Optionalautopoll: MaybeRefOrGetter<boolean>
Whether to automatically poll for new objects.
objects: A ref that contains
an array of Graffiti objects.poll: A function that can be called to manually check for objects.
If a poll is already running, it waits for that poll.error: A ref containing a failure of the entire discovery, or null.
On failure, retries are automatic (e.g. to reconnect to the network).isFirstPoll: A boolean ref
that is true until the first successful discovery completes.
The Graffiti.discover method as a reactive composable for use in the Vue composition API.
Its corresponding renderless component is GraffitiDiscover.
The arguments of this composable are largely the same as Graffiti.discover, only they can also be Refs or getters. There is one additional optional argument
autopoll, which whentrue, will automatically poll for new objects. As they change the arguments change, the output will automatically update. Reactivity only triggers when the root array or object changes, not when the elements or properties change. If you need deep reactivity, wrap your argument in a getter.