• Send a REQUEST and await the matching RESPONSE or ERROR from the vSomeIP client in the main process.

    Parameters

    • opts: SomeipScriptSendBase

      Service / instance / method / payload and optional channel, versions, and request_service major/minor.

    • timeoutMs: number = 1000

      Maximum wait time in milliseconds for the response (default 1000).

    Returns Promise<SomeipMessage>

    The decoded SomeipMessage for the response (payload as Buffer).

    When the device is unknown, the service is unavailable, or the stack times out waiting for a reply.

    Mirrors the UI / IPC path ipc-send-someip for REQUEST: performs request_service then sendRequestAndWaitResponse.

    const resp = await someipRequest(
    { service: 0x1234, instance: 1, method: 0x6001, payload: [0x01] },
    2000
    )
    console.log(resp.returnCode, resp.payload)