Table of Contents

GetRoomEndpointData

Methods
public static (EndpointData, bool isValid, string validationErrorMessage) GetRoomEndpointData(RoomData room)

Creates endpoint data for connecting to the room.

Parameters
Type Name Description
RoomData room

The room data to create endpoint information for.

Returns
Type Description
(EndpointData, bool isValid, string validationErrorMessage)

A tuple containing the endpoint data, validation status, and any validation error message.

Remarks

This method prepares the connection information needed to join the room, including handling platform-specific port configurations for WebGL and local development.

The method validates the endpoint data and returns appropriate error messages if validation fails.