Skip to content

Commit acca39d

Browse files
committed
Refactor WebSocket to Task-based API and update tests
Rewrite WebSocket implementation to a Task-based API: createWebSocket now returns a Task<WebSocket>, uses Task/Schedule primitives (retry, callback, exponential backoff, jitter, maxDelay), adds shouldRetryOnClose, improves binary handling and docs, and removes legacy retry/old task code. Update tests to use an in-process test WebSocket server (_globalSetup.ts) and the Task runner (createRunner), modernize assertions, and cover various close/terminate/retry scenarios. Update vitest config to exclude additional patterns, add Playwright browser commands (startWsServer/stopWsServer) for browser tests, and tweak parallelism/snapshot settings.
1 parent 7b65d1a commit acca39d

File tree

4 files changed

+644
-764
lines changed

4 files changed

+644
-764
lines changed

0 commit comments

Comments
 (0)