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

10 lines
370 B
TypeScript

import { PosixPlatform } from './posix'
import { UnsupportedPlatform } from './unsupported'
import type { RelayPlatform } from './types'
export { MAX_SOCKETS } from './types'
export type { ClaimedSocket, ProcessInfo, RelayPlatform } from './types'
export const platform: RelayPlatform =
process.platform === 'win32' ? new UnsupportedPlatform() : new PosixPlatform()