Files
Discord-Presence-Relay/src/main/platform/unsupported.ts
T

76 lines
1.3 KiB
TypeScript
Raw Normal View History

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
}
async discoverAndClaim(): Promise<ClaimedSocket[]> {
2026-06-15 02:26:16 +07:00
throw NOT_SUPPORTED
}
async discoverNewSocket(): Promise<ClaimedSocket | null> {
2026-06-15 02:26:16 +07:00
throw NOT_SUPPORTED
}
restoreSocket(): void {
throw NOT_SUPPORTED
}
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
}