0.0.2 • Published 10 months ago

@episte-ai/episte-bridge v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Episte Bridge

Usage

import {bridge, BridgeMethod} from '@episte-ai/episte-bridge';

function generateID() {
  return Date.now() + '_' + Math.random();
}

// Sends event to app/web
const requestID = generateID();
bridge.send(BridgeMethod.Init, requestID);

// Subscribes to event, sended by app/web
bridge.subscribe((e) => console.log(e));
0.0.2

10 months ago

0.0.1

10 months ago