create Method

Create an EventSubscription.

create(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, events: EventType[]): Promise<EventSubscription>

throws Common iModelHub errors

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
iModelId GuidString Id of the iModel. See HubIModel.
events EventType[] Array of EventTypes to subscribe to.

Returns - Promise<EventSubscription>

Created EventSubscription instance.

Defined in

Last Updated: 13 June, 2024