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

ProjectChannels

interface

The user channels, as the Project events notifier reaches them: one open stream per user key, peeked at — never opened — so publishing reaches only a user who has the event stream open (the server's Channels hub satisfies it).

API

@Interface()
export abstract class ProjectChannels {
  abstract peekUser(userId: string): ProjectChannel | undefined;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (1)

peekUser

peekUser(userId: string): ProjectChannel | undefined

The user's open user-channel stream, or undefined when none is open.

@paramuserIdstring
@returnsProjectChannel | undefined