MCPcopy
hub / github.com/coder/mux / refreshAndEmitMetadata

Method refreshAndEmitMetadata

src/node/services/workspaceService.ts:4643–4648  ·  view source on GitHub ↗

* Refresh workspace metadata from config and emit to subscribers. * Useful when external changes (like section assignment) modify workspace config.

(workspaceId: string)

Source from the content-addressed store, hash-verified

4641 * Useful when external changes (like section assignment) modify workspace config.
4642 */
4643 async refreshAndEmitMetadata(workspaceId: string): Promise<void> {
4644 const metadata = await this.getInfo(workspaceId);
4645 if (metadata) {
4646 this.emit("metadata", { workspaceId, metadata });
4647 }
4648 }
4649
4650 async rename(workspaceId: string, newName: string): Promise<Result<{ newWorkspaceId: string }>> {
4651 try {

Callers 3

routerFunction · 0.80

Calls 2

getInfoMethod · 0.95
emitMethod · 0.95

Tested by

no test coverage detected