mirror of
https://github.com/xtr-dev/rondevu-client.git
synced 2025-12-14 21:03:23 +00:00
- Renamed RondevuService to Rondevu as single main entrypoint - Integrated signaling methods directly into Rondevu class - Updated service FQN format: service:version@username (colon instead of @) - Added service discovery (direct, random, paginated) - Removed high-level abstractions (ServiceHost, ServiceClient, RTCDurableConnection, EventBus, WebRTCContext, Bin) - Updated RondevuAPI with new endpoint methods (offer-specific routes) - Simplified types (moved Binnable to types.ts, removed connection types) - Updated RondevuSignaler to use Rondevu class - Breaking changes: Complete API overhaul for simplicity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
21 lines
657 B
TypeScript
21 lines
657 B
TypeScript
/**
|
|
* Core signaling types
|
|
*/
|
|
|
|
/**
|
|
* Cleanup function returned by listener methods
|
|
*/
|
|
export type Binnable = () => void
|
|
|
|
/**
|
|
* Signaler interface for WebRTC offer/answer/ICE exchange
|
|
*/
|
|
export interface Signaler {
|
|
addIceCandidate(candidate: RTCIceCandidate): Promise<void>
|
|
addListener(callback: (candidate: RTCIceCandidate) => void): Binnable
|
|
addOfferListener(callback: (offer: RTCSessionDescriptionInit) => void): Binnable
|
|
addAnswerListener(callback: (answer: RTCSessionDescriptionInit) => void): Binnable
|
|
setOffer(offer: RTCSessionDescriptionInit): Promise<void>
|
|
setAnswer(answer: RTCSessionDescriptionInit): Promise<void>
|
|
}
|