Skip to main content
Skip table of contents

message_to_dp(event_name, strdata)

Features

After providing a message to the user, a response message is returned when a response message is received from the user.

Parameters

Parameter NameData TypeDefault ValueDescription

event_name

string

-

Eventname to provide to the user
  • event_name is limited to 256 bytes.

strdata

string

-

Data to be provided to users
  • strdata is limited to 3000 bytes.

Return

ValueDescription

string

Event name entered when calling Dart-API(sendUserEventResponse)
string
strdata entered when calling Dart-API(sendUserEventResponse)

Exception

ExceptionDescription

DR_Error (DR_ERROR_TYPE)

Parameter data type error occurred

DR_Error (DR_ERROR_VALUE)

Parameter value is invalid

DR_Error (DR_ERROR_RUNTIME)

C extension module error occurred

DR_Error (DR_ERROR_STOP)

Program terminated forcefully

Example

PY
tp_log('message send!')
event, data = message_to_dp('wait', 'true')
tp_log('message get!')
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.