1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Initial PoC for browser <-> desktop communication

This commit is contained in:
Hinton
2020-10-05 15:11:37 +02:00
parent 38ecc3b74b
commit f09a788103
13 changed files with 960 additions and 4 deletions

22
proxy/app.ts Normal file
View File

@@ -0,0 +1,22 @@
import NativeMessage from './nativemessage';
import IPC from './ipc';
const args = process.argv.slice(2);
class Proxy {
ipc: IPC;
nativeMessage: NativeMessage;
constructor() {
this.ipc = new IPC();
this.nativeMessage = new NativeMessage(this.ipc);
}
run() {
this.ipc.connect();
this.nativeMessage.listen();
}
}
const proxy = new Proxy();
proxy.run();