mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
673037c3df
* 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>
15 lines
502 B
TypeScript
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;
|