Sha256: 6948d107818a713660f37dc126ccba3bae292b45c2529c9c40dcff5904bf7dc5
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
let library; class TransmitterWrapper { static initialize() { if (process.platform === "win32") library = require(`${require('path').resolve(__dirname, '../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`) else if (process.platform === "darwin") library = require(`${require('path').resolve(__dirname, '../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`) else library = require(`${require('path').resolve(__dirname, '../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`) let binariesRootPath = String(`${require('path').resolve(__dirname, '../../../')}`) return library.initializeTransmitter(binariesRootPath) } static activate(licenseKey, proxyHost, proxyUserName, proxyUserPassword) { this.initialize() return library.activate(licenseKey, proxyHost, proxyUserName, proxyUserPassword) } static sendCommand(messageArray) { return library.sendCommand(messageArray) } static setConfigSource(configSource) { //return library.setConfigSource(configSource) } } module.exports = TransmitterWrapper
Version data entries
2 entries across 2 versions & 1 rubygems