import {Subscription} from 'eventstore-ts-client/src/subscription/Subscription.ts'
Subscription
Extends:
Constructor Summary
Public Constructor | ||
public |
Creates an instance of subscription. |
Member Summary
Public Members | ||
public get |
Gets get credentials |
|
public get |
Returns subscriptionId |
|
public |
indicates if subscription is running |
|
public |
logger |
|
public get |
Returns subscription nam |
Protected Members | ||
protected |
credentials for subscription |
|
protected |
global log position |
|
protected |
indicates if events should be full resolved |
|
protected |
instance of corresponding stream |
|
protected |
uuid4 of subscription |
|
protected |
connection to use |
Method Summary
Public Methods | ||
public |
eventAppeared(event: Event, position: Position): void Called when event from eventstore arrives |
|
public |
Gets resolve link tos |
|
public |
async unsubscribe(): Promise Unsubscribe from stream |
Protected Methods | ||
protected |
onDropped(reason: ): void Called when subscription was dropped |
|
protected |
Called when error appears |
|
protected |
Determines whether event on |
|
protected |
onSubscribed(): void Called when subscription is established |
Public Constructors
Public Members
Protected Members
Public Methods
public eventAppeared(event: Event, position: Position): void source
Called when event from eventstore arrives
Protected Methods
protected onDropped(reason: ): void source
Called when subscription was dropped
Params:
Name | Type | Attribute | Description |
reason |
protected onError(err: Error): void source
Called when error appears
Params:
Name | Type | Attribute | Description |
err | Error |