Sha256: 845f71d6575b437026a89333acb18e9d0e63f612f47cb60db5742fa9d5a6ce2b
Contents?: true
Size: 1.13 KB
Versions: 22
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
22 entries across 13 versions & 1 rubygems