Skip to content

Instantly share code, notes, and snippets.

View kybik44's full-sized avatar
🏠
Working from home

Alexey Budilovich kybik44

🏠
Working from home
  • Belarus, Minsk
View GitHub Profile
@kybik44
kybik44 / CALL-REFACTOR-PLAN.md
Last active April 24, 2026 13:17
NF Call Refactoring β€” Types, Service, Hook

Call Code Refactoring Plan

Problem

WebRTCPipeline.ts β€” 1,582 lines. Call lifecycle, media, audio routing, stats, participants β€” all in one class. useSessionConnection.ts β€” 1,384 lines. Orchestration hook mixed with backend-specific logic. No central call state. 10 transport states, set from 13+ places, no validation.

@kybik44
kybik44 / CALL-REFACTOR-PLAN.md
Last active April 24, 2026 11:03
NF Call Refactoring β€” Types, Service, Hook

Call Code Refactoring Plan

Problem

WebRTCPipeline.ts β€” 1,582 lines. Call lifecycle, media, audio routing, stats, participants β€” all in one class. useSessionConnection.ts β€” 1,384 lines. Orchestration hook mixed with backend-specific logic. No central call state. 10 transport states, set from 13+ places, no validation.