CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 11:47:26 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/socketio/engine.io.git
etag: W/"8f6f343a34b201898799b063783332d6"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=n9AO%2FjcOY2UbxurQs1U88RehU92bxWNDBtL93bBxPZmsQBjOwLQ2k4tSUj6T4tx0RF24ZeszsumBBBc%2FxJP7tJqyzEUFSKPRvyujlkKHmMHS1Vw2sz3tZCDAsW7gavckOF%2BcFrmxFgoIdvGYrbJuHoMksG8mmJUA43irZlRs7w7Ax5K1tZP29v2r6cSsivO8rJFhpqoPxnjXpwvJMP06Iz0FpuLj4Mja40qV3gx6mRX2GmzRgJ%2BriLi63FtuhdiHgrLhUm3N5zE1BsJnoX2P8g%3D%3D--Xnj8En6%2B%2BWftd4VY--o2LH%2F3%2FKpUSmrc6LRkeqkg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1303788393.1753530446; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 11:47:26 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 11:47:26 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 92F6:3240E6:4FCF93:689FB0:6884C04E
fix(webtransport): add proper framing · socketio/engine.io@a306db0 · GitHub
Copy file name to clipboardExpand all lines: lib/transports/webtransport.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 565
Commit a306db0
committed
fix(webtransport): add proper framing
WebTransport being a stream-based protocol, the chunking boundaries are
not necessarily preserved. That's why we need a header indicating the
type of the payload (plain text or binary) and its length.
We will use a format inspired by the WebSocket frame:
- first bit indicates whether the payload is binary
- the next 7 bits are either:
- 125 or less: that's the length of the payload
- 126: the next 2 bytes represent the length of the payload
- 127: the next 8 bytes represent the length of the payload
Reference: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#decoding_payload_length
Related:
- #687
- #6881 parent 7dd1350 commit a306db0Copy full SHA for a306db0
File tree
Expand file treeCollapse file tree
5 files changed
+122
-116
lines changedFilter options
- lib
- transports
- test
Expand file treeCollapse file tree
5 files changed
+122
-116
lines changed+20-18Lines changed: 20 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 | 24 |
| |
26 | 25 |
| |
27 | 26 |
| |
| |||
149 | 148 |
| |
150 | 149 |
| |
151 | 150 |
| |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
161 | 158 |
| |
162 | 159 |
| |
163 | 160 |
| |
| |||
536 | 533 |
| |
537 | 534 |
| |
538 | 535 |
| |
539 |
| - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
540 | 541 |
| |
541 | 542 |
| |
542 | 543 |
| |
| |||
546 | 547 |
| |
547 | 548 |
| |
548 | 549 |
| |
549 |
| - | |
550 | 550 |
| |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
555 | 557 |
| |
556 | 558 |
| |
557 | 559 |
| |
| |||
572 | 574 |
| |
573 | 575 |
| |
574 | 576 |
| |
575 |
| - | |
| 577 | + | |
576 | 578 |
| |
577 | 579 |
| |
578 | 580 |
| |
|
lib/transports/webtransport.ts
Copy file name to clipboardExpand all lines: lib/transports/webtransport.ts+28-46Lines changed: 28 additions & 46 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 | 7 |
| |
20 | 8 |
| |
21 | 9 |
| |
| |||
24 | 12 |
| |
25 | 13 |
| |
26 | 14 |
| |
27 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
28 | 20 |
| |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
40 | 30 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 31 | + | |
| 32 | + | |
45 | 33 |
| |
46 | 34 |
| |
47 | 35 |
| |
| |||
58 | 46 |
| |
59 | 47 |
| |
60 | 48 |
| |
61 |
| - | |
| 49 | + | |
62 | 50 |
| |
63 | 51 |
| |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
80 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
81 | 63 |
| |
82 | 64 |
| |
83 | 65 |
| |
|
+25-8Lines changed: 25 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
|
You can’t perform that action at this time.
0 commit comments