Does anyone have any experience switching from ffi-napi to koffi in an electron environment?

As we all know by now, ffi-napi is more or less just not supported in the latest versions of Electron (supposedly passed 20.0.0 from what I read) and I’m trying to find alternative packages to work on the latest build of Electron to read my dll file. I came across koffi and I was wondering if anyone had any experience with this package or have any recommendations of a ffi package to use on Electron (currently on 28.0.0). I read up on the documentation for koffi, but it doesn’t seem to be working. Errors wise, this is the error I’m getting when using ffi-napi and ffi-cross: (node:17688) UnhandledPromiseRejectionWarning: Error: External buffers are not allowed

Previous (Using ffi-napi outside of electron)

var ffi = require('ffi-napi');
const path = require('path');
const tlsClientLibrary = ffi.Library( path.join(__dirname, "..", "tls.dll"), {
    'request': ['string', ['string']],
    'getCookiesFromSession': ['string', ['string']],
    'addCookiesToSession': ['string', ['string']],
    'freeMemory': ["void", ['string']],
    'destroyAll': ['string', []],
    'destroySession': ['string', ['string']]
});

Within Electron

const koffi = require('koffi');
const tlsClientLibrary = koffi.load(path.join(__dirname, "..", "tls.dll"));
const request = tlsClientLibrary.func('request', 'str', ['str']);
const getCookiesFromSession = tlsClientLibrary.func('getCookiesFromSession', 'str', ['str']);
const addCookiesToSession = tlsClientLibrary.func('addCookiesToSession', 'str', ['str']);
const freeMemory = tlsClientLibrary.func('freeMemory', 'void', ['str']);
const destroyAll = tlsClientLibrary.func('destroyAll', 'str', []);
const destroySession = tlsClientLibrary.func('destroySession', 'str', ['str']);