registerForEvent

Function
import { registerForEvent } from "@esri/hub-events";
//
registerForEvent({
  groupId,
  authentication
})
  .then(response)

Register for an ArcGIS Hub event.

Parameters

Parameter Type Default Notes
requestOptions Required IEventRegisterOptions

request options that include authentication

Available requestOptions

Property Type Notes
groupId string

Identifier for the group associated with the ArcGIS Hub event.

Returns

A Promise that will resolve with the response from the service.

Promise<{
groupId:
string
success:
boolean
}>

Function defined in events/src/register.ts:27