Files
libhalo/api/web.js
2023-06-05 18:40:22 +02:00

29 lines
1.0 KiB
JavaScript

/**
* LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
* Copyright by Arx Research, Inc., a Delaware corporation
* License: MIT
*/
const {HaloGateway} = require("../halo/gateway/requestor");
const {haloFindBridge} = require("../web/web_utils");
const {haloGateExecutorCreateWs, haloGateExecutorUserConfirm} = require("../halo/gateway/executor");
const {execHaloCmdWeb, detectMethod} = require("../drivers/web");
const {checkWebNFCPermission} = require("../drivers/webnfc");
/**
* The LibHaLo stable API. Please don't depend on the functions imported from anywhere else
* except the lib's index.js. The library's structure is subject to change in the next versions.
*/
module.exports = {
// for web usage
execHaloCmdWeb,
haloFindBridge,
haloGetDefaultMethod: detectMethod,
haloCheckWebNFCPermission: checkWebNFCPermission,
// for web usage with gateway
HaloGateway,
haloGateExecutorCreateWs,
haloGateExecutorUserConfirm,
};