Skip to main content

DataEvent

ug-js-sdk


ug-js-sdk / DataEvent

Interface: DataEvent

Defined in: types/index.ts:851

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:517

Unique identifier matching the request

Inherited from

InteractResponse.uid


client_start_time?

optional client_start_time: string

Defined in: types/index.ts:519

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:521

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:523

ISO timestamp when server finished processing

Inherited from

InteractResponse.server_end_time


kind

kind: "interact"

Defined in: types/index.ts:783

The kind of response matching the request

Inherited from

InteractResponse.kind


event

event: "data"

Defined in: types/index.ts:852

The type of event

Overrides

InteractResponse.event


data

data: Record<string, any>

Defined in: types/index.ts:854

Structured data payload (utility results, etc.)