Skip to content

update driver to work with the new gateway - #267

Merged
Gioee merged 19 commits into
mainfrom
mt-gateway-driver
May 28, 2026
Merged

update driver to work with the new gateway#267
Gioee merged 19 commits into
mainfrom
mt-gateway-driver

Conversation

@Gioee

Copy link
Copy Markdown
Member

No description provided.

@Gioee
Gioee requested a review from danielebriggiMay 15, 2026 15:01
@GioeeGioee self-assigned this May 15, 2026
Comment threadsrc/drivers/types.ts
Comment threadsrc/drivers/connection-ws.ts Outdated
Comment threadsrc/drivers/connection-ws.ts Outdated
Daniele Briggiand others added 6 commits May 22, 2026 15:57
socket.io-parser 4.2.6 rejects binary packets with more than 10 attachments by default. SQLite Cloud rowsets with BLOB values can exceed that count, causing the browser websocket driver to fail with a parser error before the binary payloads are delivered.
Add socket.io-parser as an explicit dependency and pass a custom parser to socket.io-client. The custom decoder raises maxAttachments while preserving the standard encoder and normal Socket.IO transport negotiation.
Add a focused unit assertion for the websocket connection options so the parser override remains wired into future builds.
Add a minimal Vite + TypeScript example that queries SQLite Cloud over
WebSocket from the browser. Uses a generic runQuery helper and consumes the driver from a locally packed tarball via npm run sync-driver, documented in the README.
@Gioee
Gioee requested a review from danielebriggiMay 26, 2026 06:15
@codecov-commenter

codecov-commenter commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.64516% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.74%. Comparing base (a2c2236) to head (ea64188).

Files with missing linesPatch %Lines
src/drivers/connection-ws.ts82.75%5 Missing ⚠️
src/drivers/types.ts0.00%1 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #267 +/- ##
==========================================
- Coverage 87.01% 84.74% -2.27% 
==========================================
Files 12 11 -1 Lines 1155 1121 -34 Branches 369 368 -1 ==========================================
- Hits 1005 950 -55 - Misses 140 160 +20 - Partials 10 11 +1 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Gioee
Gioee merged commit 796dfe5 into mainMay 28, 2026
13 of 22 checks passed
@Gioee
Gioee deleted the mt-gateway-driver branch May 28, 2026 13:56
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Gioee@codecov-commenter@danielebriggi@andinux@TizianoT