IAudience Interface
Audience represents all clients connected to the op stream, both read-only and read/write.
Signature
export interface IAudience extends EventEmitter
Extends: EventEmitter
Methods
Method | Return Type | Description |
---|---|---|
getMember(clientId) | IClient | undefined | Get details about the connected client with the specified clientId, or undefined if the specified client isn't connected |
getMembers() | Map<string, IClient> | List all clients connected to the op stream, keyed off their clientId |
on(event, listener) | this |