GitHub package.json versionTypeScriptNPM
GitHub package.json versionTypeScriptNPM
Latest

Client

As of v2.0.0

What is a client?

A client is any resource (i.e. component, service, directives etc.) consuming the Angular Eagle Eye. A client consumes this context by:
  • either injecting the Angular Eagle Eye's ContextService into a resource and accessing the context directly through this service as needed. More on this here.
  • or streaming it through an Angular Eagle Eye's StreamingService instance. More on this here.

Applying Client Identifier

A client identifier is any arbitrary but unique name assigned by a client to a stream. It is used for identifying a client during certain operations such as memory management and optimization.

Note: Client Identifiers are a mandatory aspect of the StreamService provisioning. Consider: maintaininig uniqueness of IDs by assigning to its clientId configuration property either an identical or a stylized version of the client's name. See this example

Please see specific code examples respectively in:
  1. Direct Usage
  2. Joining the Angular Eagle Eye Change Stream