“myShared” Objects

Description

Returns an array of shared objects corresponding to the room’s current guests.

To get the current client’s shared object use partyLoadMyShared().

p5.party maintains a shared object for each participant in the room. partyLoadGuestShareds() returns a dynamic array of these shared objects that is kept up to date as guests join and leave the room.

If a guest’s shared object is empty (it has no properties) it will NOT be included.

Syntax

partyLoadGuestShareds()

Parameters

none

Returns

array: dynamically updated array of shared objects