Skip to main content

DataEvent

ug-js-sdk


ug-js-sdk / DataEvent

Interface: DataEvent

Defined in: types/index.ts:795

Data event containing utility results or other structured data. Received via onDataMessage hook.

Example

hooks: {
onDataMessage: (event) => {
console.log('Utility results:', event.data)
}
}

Extends

  • InteractResponse

Properties

uid

uid: string

Defined in: types/index.ts:474

Unique identifier matching the request

Inherited from

InteractResponse.uid


client_start_time?

optional client_start_time: string

Defined in: types/index.ts:476

ISO timestamp when client sent the original request

Inherited from

InteractResponse.client_start_time


server_start_time?

optional server_start_time: string

Defined in: types/index.ts:478

ISO timestamp when server started processing

Inherited from

InteractResponse.server_start_time


server_end_time?

optional server_end_time: string

Defined in: types/index.ts:480

ISO timestamp when server finished processing

Inherited from

InteractResponse.server_end_time


kind

kind: "interact"

Defined in: types/index.ts:736

The kind of response matching the request

Inherited from

InteractResponse.kind


event

event: "data"

Defined in: types/index.ts:796

The type of event

Overrides

InteractResponse.event


data

data: Record<string, any>

Defined in: types/index.ts:798

Structured data payload (utility results, etc.)