# che-workspace-client **Repository Path**: mirrors_eclipse/che-workspace-client ## Basic Information - **Project Name**: che-workspace-client - **Description**: che-workspace-client - **Primary Language**: Unknown - **License**: EPL-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-22 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Workspace client This is a client for workspace REST API and workspace master JSON-RPC API interactions. ## Examples ### REST API client ```typescript import WorkspaceClient from '@eclipse-che/workspace-client'; const restApiClient = WorkspaceClient.getRestApi(); // get list of workspaces const promise = restApiClient.getAll(); promise.then((workspaces) => { // process workspaces here }); ``` ### JSON-RPC API client ```typescript import WorkspaceClient from '@eclipse-che/workspace-client'; const entryPoint = '/api/workspace'; const masterApiClient = WorkspaceClient.getJsonRpcApi(entryPoint); const connectionPromise = masterApiClient.connect(entryPoint); // get client ID connectionPromise.then(() => { const clientId = masterApiClient.getClientId(); }); const statusChangeHandler = message => { const status = message.status; }; // subscribe to workspace status changes masterApiClient.subscribeWorkspaceStatus('workspace-id', statusChangeHandler); ``` ## License EPL-2