mirror of
https://github.com/YuzuZensai/Discord-Presence-Relay.git
synced 2026-09-13 17:01:36 +00:00
✨ feat: initial commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import type { ClaimedSocket, ProcessInfo, RelayPlatform } from './types'
|
||||
|
||||
const NOT_SUPPORTED = new Error('Platform not supported')
|
||||
|
||||
/**
|
||||
* Placeholder for platforms without a real implementation yet.
|
||||
*/
|
||||
export class UnsupportedPlatform implements RelayPlatform {
|
||||
readonly isSupported = false
|
||||
|
||||
fakeSocketPath(): string {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
removeFakeSocket(): void {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
finalizeFakeSocket(): void {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
fakeSocketExists(): boolean {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
async recoverLeftoverSockets(): Promise<void> {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
discoverAndClaim(): ClaimedSocket[] {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
discoverNewSocket(): ClaimedSocket | null {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
restoreSocket(): void {
|
||||
throw NOT_SUPPORTED
|
||||
}
|
||||
|
||||
getInstanceProcess(): ProcessInfo | null {
|
||||
return null
|
||||
}
|
||||
|
||||
getPeerProcess(): ProcessInfo | null {
|
||||
return null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user