@prismshadow/penguin-library-project · library/project/src/project.ts:546

ProjectEvents

interface

ProjectEvents: the mechanism ProjectNotifier implements — a user-level event to everyone who can see a Project, its owner and its members with GET /api/events open. The runtime publishes a Session's state flips and its generated title this way, and a route publishes a change the list could not otherwise learn of (a rename, a new Session).

API

@Interface()
export abstract class ProjectEvents {
  abstract notifyProjectUsers(projectId: string, event: ServerEvent): void;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use

Members (1)

notifyProjectUsers

notifyProjectUsers(projectId: string, event: ServerEvent): void
@paramprojectIdstring
@parameventServerEvent
@returnsvoid