As we were testing the library on a browser application, we realized that the browser couldn't generate a device response because "Buffer" is not defined in the browser context, but only in the NodeJS API.
This error occurs because "Buffer" is not imported from the "buffer" package in the DeviceResponse.ts file.
As we were testing the library on a browser application, we realized that the browser couldn't generate a device response because "Buffer" is not defined in the browser context, but only in the NodeJS API.
This error occurs because "Buffer" is not imported from the "buffer" package in the DeviceResponse.ts file.
The following line should solve the issue: