robosats/mobile/native/TorModule.ts
KoalaSat 673037c3df
Websockets on Tor android (#1615)
* Websockets on Tor android

* Show turtle mode on android

* Display lnp2pbot orders (#1617)

* P2PBOT working

* Display LNP2POrders

* Filter by robosats orders

* Robosats hosts filter by default and better browse text

---------

Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
2024-11-24 08:16:50 +00:00

15 lines
502 B
TypeScript

import { NativeModules } from 'react-native';
const { TorModule } = NativeModules;
interface TorModuleInterface {
start: () => void;
restart: () => void;
getTorStatus: () => void;
sendWsOpen: (path: string) => Promise<boolean>;
sendWsClose: (path: string) => Promise<boolean>;
sendWsSend: (path: string, message: string) => Promise<boolean>;
sendRequest: (action: string, url: string, headers: string, body: string) => Promise<string>;
}
export default TorModule as TorModuleInterface;