Matchmaking & Networking SDK
This guide introduces the Play SDK and explains how to integrate core multiplayer features into VIVERSE Studio content. It covers setup and usage for features such as matchmaking, session management,
Initialize the `playClient` instance
globalThis.playClient = new globalThis.viverse.play();Matchmaking API
globalThis.matchmakingClient = await playClient.newMatchmakingClient(appId);
Disconnect
Setup Actor Info
Setup Actor Properties

Create & Configure a Room

Set Room Properties

Join Room by RoomID

Leave Room
Close Room
Get Available Rooms
Get My Room Actors
Start Game
Matchmaking Event Listeners

onConnect Event
onJoinedLobby Event
onJoinRoom Event
onRoomListUpdate Event
onRoomActorChange Event
onRoomClosed Event
onError Event
stateChange Event
onGameStartNotify Event
Multiplayer APIs
Prerequisites
Initialize Multiplayer Client


Connection Control
Connect Event
Disconnect
Client Connect Event
Client Disconnect Event
General
sendMessage

onMessage
NetworkSync
updateMyPosition

updateEntityPosition

onNotifyPositionUpdate
onNotifyRemove
ActionSync
competition

onCompetition
Real-time Leaderboard
leaderboardUpdate

onLeaderboardUpdate
Last updated
Was this helpful?