getProjectState
plugin.cbstate.getProjectState(): Promise<GetProjectStateResponse>
Retrieves the current project state from the server via WebSocket.
Parameters
No parameters.
Returns
Promise<GetProjectStateResponse> — A promise that resolves with the project's state.
Example
import plugin from '@codebolt/plugin-sdk';
const result = await plugin.cbstate.getProjectState();
console.log(result);