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:
22
proxy/app.ts
Normal file
22
proxy/app.ts
Normal 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();
|
||||
Reference in New Issue
Block a user