NativeScript / worker-loader

36 stars 20 forks source link

how can i use nativescript-bluetooth with Workers #13

Open AsrarMemon opened 6 years ago

AsrarMemon commented 6 years ago

hello,

require("globals");
var bluetooth = require("nativescript-bluetooth");

global.onmessage = function (msg) {
if (msg.data == "START") {
  bluetooth.startScanning({
//.....properies & call back goes here
});
}
}

how can i use nativescript-bluetooth with Workers ?

dpavez14 commented 5 years ago

Take a look to this answer: https://stackoverflow.com/a/54546214/4982126