usePrivateRoom
usePrivateRoom():
PrivateRoom|null
The private room this page’s room runs, as readPrivateRoom reads it:
its owner’s player id. Null in a public room, in a fresh room a public
room’s teleport made private to its group, and in a game played alone.
Returns
Section titled “Returns”PrivateRoom | null
Example
Section titled “Example”const privateRoom = usePrivateRoom(); const isOwner = privateRoom?.ownerPlayerId === readPlayerId(localPlayer);