awaitAnySpaceBeginLoading (Javascript)

- Declaration

public awaitAnySpaceBeginLoading(): Promise<string>

- Description

Returns a promise of the space ID when attempting to join a space.

- Sample

import { CavrnusSpatialConnector } from "../services/csc"; function async awaitSpaceLoad() { const csc = new CavrnusSpatialConnector(); try { const spaceId = await csc.awaitAnySpaceBeginLoading(); } catch (err) { throw err; } }