2026-06-15 02:26:16 +07:00
|
|
|
import type { ClaimedSocket, ProcessInfo, RelayPlatform } from './types'
|
|
|
|
|
|
|
|
|
|
const NOT_SUPPORTED = new Error('Platform not supported')
|
|
|
|
|
|
|
|
|
|
export class UnsupportedPlatform implements RelayPlatform {
|
|
|
|
|
readonly isSupported = false
|
|
|
|
|
|
|
|
|
|
fakeSocketPath(): string {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-25 01:12:18 +07:00
|
|
|
ipcSocketPath(): string {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-15 02:26:16 +07:00
|
|
|
removeFakeSocket(): void {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
finalizeFakeSocket(): void {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fakeSocketExists(): boolean {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async recoverLeftoverSockets(): Promise<void> {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-12 05:35:04 +07:00
|
|
|
async discoverAndClaim(): Promise<ClaimedSocket[]> {
|
2026-06-15 02:26:16 +07:00
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-12 05:35:04 +07:00
|
|
|
async discoverNewSocket(): Promise<ClaimedSocket | null> {
|
2026-06-15 02:26:16 +07:00
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
restoreSocket(): void {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-12 05:35:04 +07:00
|
|
|
discardClaimedSocket(): void {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async isSocketAlive(): Promise<boolean> {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-25 01:12:18 +07:00
|
|
|
async removeStaleIpcSocket(): Promise<void> {
|
|
|
|
|
throw NOT_SUPPORTED
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-15 02:26:16 +07:00
|
|
|
getInstanceProcess(): ProcessInfo | null {
|
|
|
|
|
return null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getPeerProcess(): ProcessInfo | null {
|
|
|
|
|
return null
|
|
|
|
|
}
|
2026-07-25 01:12:18 +07:00
|
|
|
|
|
|
|
|
killProcess(): boolean {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
isProcessAlive(): boolean {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
launchExecutable(): boolean {
|
|
|
|
|
return false
|
|
|
|
|
}
|
2026-06-15 02:26:16 +07:00
|
|
|
}
|