transport-io 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/index.js +1 -1
- package/dist/transport/types.d.ts +4 -3
- package/dist/transport/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ before you start.** It lists what this library will not do. Full documentation i
|
|
|
29
29
|
the fallback reaches it after 5 seconds.
|
|
30
30
|
- **The server needs a separate native install**, and its Linux prebuild needs glibc 2.38 -
|
|
31
31
|
no default Node `-slim` image has it, and Alpine has no prebuild at all.
|
|
32
|
-
That package, the fourteen-day ECDSA rule for a pinned
|
|
32
|
+
That package, the fourteen-day ECDSA rule for a pinned certificate, and the
|
|
33
33
|
Safari gap are the same for Socket.IO's WebTransport transport: properties of the stack,
|
|
34
34
|
not of this library.
|
|
35
35
|
- **The protocol is v0 and unstable.** Both sides currently require an exact match.
|
|
@@ -40,4 +40,9 @@ npm install transport-io
|
|
|
40
40
|
|
|
41
41
|
A git install does not work - the repository root is a private monorepo package.
|
|
42
42
|
|
|
43
|
+
To see what a session is doing, frames, streams and drops, mount
|
|
44
|
+
[`@transport-io/devtools`](https://www.npmjs.com/package/@transport-io/devtools) in the page.
|
|
45
|
+
To put a server on a platform, read
|
|
46
|
+
[Deploying](https://transport-io.github.io/transport-io/guides/deploy/) first.
|
|
47
|
+
|
|
43
48
|
MIT © #V0ID
|
package/dist/index.js
CHANGED
|
@@ -16,5 +16,5 @@ export { createServer, Server, } from './server.js';
|
|
|
16
16
|
* `changeset version` moves the manifest, so this moves in the same commit - which the test
|
|
17
17
|
* enforces rather than trusting anyone to remember.
|
|
18
18
|
*/
|
|
19
|
-
export const VERSION = '0.13.
|
|
19
|
+
export const VERSION = '0.13.1';
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -15,9 +15,10 @@ export interface CloseInfo {
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* What a listener knows about a peer before its session exists: the request that opened
|
|
18
|
-
* it. A
|
|
19
|
-
*
|
|
20
|
-
* headers
|
|
18
|
+
* it. A page can put nothing but the path and the query on a WebTransport request, so the
|
|
19
|
+
* query is where a token travels. The browser adds `origin` itself, and both listeners hand
|
|
20
|
+
* `authorize` the request's headers; the WebSocket mapping's are the upgrade request's,
|
|
21
|
+
* cookies included. Nothing in this library reads `origin`: see SECURITY.md.
|
|
21
22
|
*/
|
|
22
23
|
export interface ConnectRequest {
|
|
23
24
|
/** The request path without its query. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/transport/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,mGAAmG;AACnG,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,WAAW,CAAA;AAEpD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB;AAED
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/transport/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,mGAAmG;AACnG,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,WAAW,CAAA;AAEpD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAA;IAC/B,QAAQ,CAAC,WAAW,EAAE,M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OAAO,CAAC,SAAS,CAAC,CAAA;CACpC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "transport-io",
|
|
3
|
-
"version": "0.13.
|
|
4
|
-
"description": "Real-time apps over WebTransport. Two lanes, one contract,
|
|
3
|
+
"version": "0.13.1",
|
|
4
|
+
"description": "Real-time apps over WebTransport. Two lanes, one contract, one fallback.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|