Import packages/plugin/src/types.ts

This commit is contained in:
QQ 2026-11-17 08:49:00 +08:00
parent d26672a610
commit 00c942daa4
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ export interface AuthenticatedPeerChannel {
readonly peerDeviceId: string
readonly peerIdentityKey: string
readonly mode?: 'LAN' | 'P2P' | 'TURN' | 'Relay'
readonly createTransportUpgradeHost?: (publishEvent: (message: RemoteMessage) => Promise<void>) => import('./transport-upgrade.js').TransportUpgradeHost | undefined
send(message: RemoteMessage): Promise<void>
onMessage(handler: (message: RemoteMessage) => void): () => void
close(code?: string): Promise<void>