[Data Processing](../groups/Data Processing.Data Processing.md) / TeleportOptions
TeleportOptions Interface
Additional information that can be provided during transmission
Table of contents
Properties
createNewPrivateRoom: boolean |
---|
Whether to enter a brand new room and not allow players who have not been specified through userId [] to join (optional) |
teleportData: TeleportData |
Data carried during transmission (optional) |
Properties
createNewPrivateRoom
• Optional
createNewPrivateRoom: boolean
Whether to enter a brand new room and not allow players who have not been specified through userId [] to join (optional)
true - Enter a new room, and Player not specified by userId [] are not allowed to join.
false - Prioritize entering existing rooms, and only enter new ones if there are no rooms that meet the requirements. Unspecified Player can enter.
Precautions
Passing true may also cause create failure due to excessive server pressure. It is recommended to pay attention to TeleportResult of API and handle it
teleportData
• Optional
teleportData: TeleportData
Data carried during transmission (optional)