type ResponseFunction = (response: DriverMessage) => Promise<void>
Function to send a response back to the host