Skip to content

Function: getWorkspaceId()

getWorkspaceId(workspaceHost?): Promise<string | undefined>

Resolve the numeric workspace id: the workspace Config’s workspaceId first, else the 10-20 digit run of workspaceHost (defaulting to getWorkspaceUrl’s host). undefined when neither yields an id.

string

Promise<string | undefined>