aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/bridge.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/bridge.ts')
-rw-r--r--src/daemon/bridge.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/daemon/bridge.ts b/src/daemon/bridge.ts
index 95f6888..d9a54ed 100644
--- a/src/daemon/bridge.ts
+++ b/src/daemon/bridge.ts
@@ -17,8 +17,6 @@ export type CdpBridge = {
stop(): Promise<void>;
handleRequest(req: WireRequest, clientId: string, send: SendToClient): Promise<void>;
isAlive(): boolean;
- recordSession(clientId: string, sessionId: string): void;
- releaseSession(sessionId: string): void;
getSessionOwner(sessionId: string): string | undefined;
removeClient(clientId: string): void;
onEvent(handler: EventHandler): void;
@@ -98,10 +96,6 @@ class EventRouter {
}
return [...this.clientSessions.keys()];
}
-
- allClients(): string[] {
- return [...this.clientSessions.keys()];
- }
}
export const createCdpBridge = (): CdpBridge => {
@@ -357,8 +351,6 @@ export const createCdpBridge = (): CdpBridge => {
stop,
handleRequest,
isAlive: () => ws !== null && ws.readyState === WebSocket.OPEN,
- recordSession: (cid, sid) => router.record(cid, sid),
- releaseSession: (sid) => router.release(sid),
getSessionOwner: (sid) => router.getOwner(sid),
removeClient: (cid) => { mux.clearClient(cid); router.removeClient(cid); },
onEvent: (h) => { eventHandler = h; },