Get IModelHubEvent from the EventSubscription. You can use long polling timeout, to have requests return when events are available (or request times out), rather than returning immediately when no events are found.
throws ResponseError if request has failed.
|requestContext||ClientRequestContext||The client request context|
|sasToken||string||SAS Token used to authenticate. See EventSAS.sasToken.|
|baseAddress||string||Address for the events. See EventSAS.baseAddress.|
|subscriptionId||string||Id of the subscription to the topic. See EventSubscription.|
|timeout||number||Optional timeout duration in seconds for request, when using long polling.|
Returns - IModelHubEvent if it exists, undefined otherwise.
Last Updated: 08 January, 2020