@gyo-framework/bridge
v0.1.7
Published
Core bridge library for Gyo framework - enables web-native communication
Maintainers
Readme
@gyo-framework/bridge
Core bridge for web-native communication.
Installation
npm install @gyo-framework/bridgeExports
class Bridge {
constructor(name: string, options?: BridgeOptions)
invoke<T>(method: string, data?: unknown): Promise<T>
listen(callback: EventCallback): Unsubscribe
getName(): string
destroy(): void
}
interface BridgeOptions {
timeout?: number // default: 30000
}See
src/Bridge.tsandsrc/types.tsfor full type definitions.
Native Integration
See docs/BRIDGE_INTEGRATION.md for Android/iOS integration specs.
