Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

- Declaration

public awaitAnySpaceConnection(): Promise<string>

- Description

Returns a promise of the space ID when any space is joined.

- Sample

import { CavrnusSpatialConnector } from "../services/csc";
function async joinSpace()
{
    const csc = new CavrnusSpatialConnector();
	try
	{
		const spaceId = await csc.awaitAnySpaceConnection();
		const spaceConnection = await csc.joinSpace(roomId);
	}
	catch (err)
	{
		throw err;
	}
}
  • No labels