API Reference > imodelhub-client > iModelHubClient > EventSubscription EventSubscription Class Subscription to receive IModelHubEvents. Each subscription has a separate queue for events that it hasn't read yet. Subscriptions are deleted, if they are inactive for an hour. Use wsgId of this instance for the methods that require subscriptionId. See EventSubscriptionHandler. Extends WsgInstance Methods Name Description constructor(): EventSubscription Properties Name Type Description eventTypes undefined | IModelHubEventType[] Types of the IModelHubEvents that this subscription listens to. Inherited properties Name Type Inherited from Description changeState undefined | ChangeState WsgInstance ecId string WsgInstance eTag undefined | string WsgInstance wsgId string WsgInstance Defined in clients/imodelhub/src/imodelhub/Events.ts Line 329 Last Updated: 12 June, 2024