@caprid/relay-websocket 0.5.0 → 0.7.0
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 +8 -3
- package/dist/fallback.d.ts +40 -8
- package/dist/fallback.d.ts.map +1 -1
- package/dist/fallback.js +50 -14
- package/dist/fallback.js.map +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -35,9 +35,14 @@ const other = await connectRelaySubscriber({ url, getToken, createTransport: cre
|
|
|
35
35
|
handshake has not completed within `webSocketDelayMs` (default 250, as Happy Eyeballs), it dials WebSocket alongside
|
|
36
36
|
it; a WebTransport handshake that fails sooner starts the WebSocket at once. The first ready carries the session and
|
|
37
37
|
the other dial is closed. Where the runtime has no usable `WebTransport`, as in Node or a Safari without it, it dials
|
|
38
|
-
WebSocket at once. The adapter calls `onFallback(
|
|
39
|
-
connection decides afresh.
|
|
40
|
-
|
|
38
|
+
WebSocket at once. The adapter calls `onFallback(report)` each time a connection ends up on WebSocket, and every
|
|
39
|
+
connection decides afresh. `report.reason` says why: `'unavailable'` (no usable `WebTransport`, or the runtime
|
|
40
|
+
refused the dial), `'slow'` (the WebSocket was ready first) or `'failed'` (the WebTransport handshake failed), with
|
|
41
|
+
what failed in `report.error`. It is the same `WebSocketFallbackReport` the connection's `fallback` holds. After `ready`, the factory result's
|
|
42
|
+
`framing` and the transport's `framing` say which transport won: `'webtransport'` or `'websocket'`. Before `ready`,
|
|
43
|
+
the transport's reads `undefined` and the factory result's reads `'webtransport'`. An application does not need
|
|
44
|
+
either: every `@caprid/relay` connection, supervised or not, has a `framing` member that says which transport it
|
|
45
|
+
is on.
|
|
41
46
|
|
|
42
47
|
## What differs from WebTransport
|
|
43
48
|
|
package/dist/fallback.d.ts
CHANGED
|
@@ -4,8 +4,24 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { BidirectionalStreamLike, MoqtSendStreamOptions, MoqtTransport } from '@caprid/moq-core';
|
|
6
6
|
import { type CloseInfo } from './errors.js';
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Why a {@link FallbackTransport} dialed WebSocket. {@link WebSocketFallbackOptions.onFallback} is called with it, and
|
|
9
|
+
* it is readable as the transport's and the connection's `fallback`. It has the shape of the SDK's
|
|
10
|
+
* `TransportFallback`, which its supervisors read for client diagnostics.
|
|
11
|
+
*/
|
|
12
|
+
export interface WebSocketFallbackReport {
|
|
13
|
+
/** The framing it fell back from. */
|
|
14
|
+
readonly from: 'webtransport';
|
|
15
|
+
/** The framing it dialed instead; whichever is ready first carries the session. */
|
|
16
|
+
readonly to: 'websocket';
|
|
17
|
+
/**
|
|
18
|
+
* `unavailable`: the runtime has no usable `WebTransport`, or refused the dial outright (`error`). `slow`: the
|
|
19
|
+
* WebTransport handshake had not completed within the WebSocket delay. `failed`: it failed, with `error`.
|
|
20
|
+
*/
|
|
21
|
+
readonly reason: 'unavailable' | 'slow' | 'failed';
|
|
22
|
+
/** What the WebTransport dial failed with, or what refused it. */
|
|
23
|
+
readonly error?: unknown;
|
|
24
|
+
}
|
|
9
25
|
/** Options for {@link withWebSocketFallback}. */
|
|
10
26
|
export interface WebSocketFallbackOptions {
|
|
11
27
|
/**
|
|
@@ -16,11 +32,13 @@ export interface WebSocketFallbackOptions {
|
|
|
16
32
|
*/
|
|
17
33
|
webSocketDelayMs?: number;
|
|
18
34
|
/**
|
|
19
|
-
* Called once when a connection ends up on WebSocket, with why WebTransport was not used
|
|
20
|
-
*
|
|
21
|
-
*
|
|
35
|
+
* Called once when a connection ends up on WebSocket, with why WebTransport was not used. Branch on `report.reason`:
|
|
36
|
+
* `unavailable` where the runtime has no usable `WebTransport` or refused the dial, `slow` where the WebSocket was
|
|
37
|
+
* ready before the WebTransport handshake completed, `failed` where that handshake failed. `report.error` holds
|
|
38
|
+
* what failed or refused it. The report is the one the connection's `fallback` holds. Not called for a connection
|
|
39
|
+
* that stays on WebTransport, or one where both dials fail. For logging; it cannot change the outcome.
|
|
22
40
|
*/
|
|
23
|
-
onFallback?: (
|
|
41
|
+
onFallback?: (report: WebSocketFallbackReport) => void;
|
|
24
42
|
}
|
|
25
43
|
/**
|
|
26
44
|
* The WebSocket delay the options give, 250 ms when unset; a TypeError or RangeError for one a timer cannot hold, or
|
|
@@ -42,9 +60,23 @@ export declare class FallbackTransport implements MoqtTransport {
|
|
|
42
60
|
readonly incomingUnidirectionalStreams: ReadableStream<ReadableStream<Uint8Array>>;
|
|
43
61
|
/** The winner's incoming bidirectional streams. */
|
|
44
62
|
readonly incomingBidirectionalStreams: ReadableStream<BidirectionalStreamLike>;
|
|
63
|
+
/**
|
|
64
|
+
* The WebTransport winner's `getStats()`, once it won and when it has one (a browser's `WebTransport`). Absent before
|
|
65
|
+
* `ready` and on WebSocket, which keeps none, so a reader that looks for the method finds no stats to read.
|
|
66
|
+
*/
|
|
67
|
+
getStats?: () => Promise<unknown>;
|
|
45
68
|
constructor(url: string, protocols: readonly string[], options?: WebSocketFallbackOptions);
|
|
46
|
-
/**
|
|
47
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Which transport the session runs on: the winning dial's framing, `@caprid/relay`'s `TransportFraming` narrowed to
|
|
71
|
+
* the two this transport dials. `undefined` until `ready` resolves.
|
|
72
|
+
*/
|
|
73
|
+
get framing(): 'webtransport' | 'websocket' | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Why the WebSocket dial started, once it has: set whichever dial then wins, and updated to `failed` when a slow
|
|
76
|
+
* WebTransport handshake fails while the WebSocket dial is still in progress. It does not change once a dial has
|
|
77
|
+
* won. `undefined` while WebTransport alone is dialing, or once it won alone.
|
|
78
|
+
*/
|
|
79
|
+
get fallback(): WebSocketFallbackReport | undefined;
|
|
48
80
|
/** The protocol the winner's peer selected (TA-8); empty until `ready` resolves. */
|
|
49
81
|
get protocol(): string;
|
|
50
82
|
createUnidirectionalStream(options?: MoqtSendStreamOptions): Promise<WritableStream<Uint8Array>>;
|
package/dist/fallback.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../src/fallback.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,aAAa,CAAC;AAMpE
|
|
1
|
+
{"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../src/fallback.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,aAAa,CAAC;AAMpE;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,qCAAqC;IACrC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC;IACnD,kEAAkE;IAClE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,iDAAiD;AACjD,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;CACxD;AAQD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,CAW/E;AAUD;;;;GAIG;AACH,qBAAa,iBAAkB,YAAW,aAAa;;IACrD,gHAAgH;IAChH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,+FAA+F;IAC/F,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,oDAAoD;IACpD,QAAQ,CAAC,6BAA6B,EAAE,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IACnF,mDAAmD;IACnD,QAAQ,CAAC,4BAA4B,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAC;IAI/E;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;gBAStB,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,GAAE,wBAA6B;IAY7F;;;OAGG;IACH,IAAI,OAAO,IAAI,cAAc,GAAG,WAAW,GAAG,SAAS,CAEtD;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAAI,uBAAuB,GAAG,SAAS,CAElD;IAED,oFAAoF;IACpF,IAAI,QAAQ,IAAI,MAAM,CAErB;IAEK,0BAA0B,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAIhG,yBAAyB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAInE,uFAAuF;IACvF,KAAK,CAAC,IAAI,GAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,IAAI;CAuLhE;AAED,iGAAiG;AACjG,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAYlD"}
|
package/dist/fallback.js
CHANGED
|
@@ -22,9 +22,6 @@ export function assertFallbackOptions(options) {
|
|
|
22
22
|
throw new RangeError('webSocketDelayMs must be between 0 and 2147483647 milliseconds');
|
|
23
23
|
return value;
|
|
24
24
|
}
|
|
25
|
-
class WebTransportOutpaced extends Error {
|
|
26
|
-
name = 'WebTransportOutpaced';
|
|
27
|
-
}
|
|
28
25
|
function closeQuietly(transport, info) {
|
|
29
26
|
try {
|
|
30
27
|
transport.close(info);
|
|
@@ -49,8 +46,14 @@ export class FallbackTransport {
|
|
|
49
46
|
incomingBidirectionalStreams;
|
|
50
47
|
/** The dials still in progress. */
|
|
51
48
|
#dials = new Set();
|
|
49
|
+
/**
|
|
50
|
+
* The WebTransport winner's `getStats()`, once it won and when it has one (a browser's `WebTransport`). Absent before
|
|
51
|
+
* `ready` and on WebSocket, which keeps none, so a reader that looks for the method finds no stats to read.
|
|
52
|
+
*/
|
|
53
|
+
getStats;
|
|
52
54
|
#winner;
|
|
53
|
-
#
|
|
55
|
+
#framing;
|
|
56
|
+
#fallback;
|
|
54
57
|
/** Ends the race without a winner; unset once it has ended. */
|
|
55
58
|
#cancel;
|
|
56
59
|
#won;
|
|
@@ -64,9 +67,20 @@ export class FallbackTransport {
|
|
|
64
67
|
this.incomingUnidirectionalStreams = this.#incoming((winner) => winner.incomingUnidirectionalStreams);
|
|
65
68
|
this.incomingBidirectionalStreams = this.#incoming((winner) => winner.incomingBidirectionalStreams);
|
|
66
69
|
}
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
/**
|
|
71
|
+
* Which transport the session runs on: the winning dial's framing, `@caprid/relay`'s `TransportFraming` narrowed to
|
|
72
|
+
* the two this transport dials. `undefined` until `ready` resolves.
|
|
73
|
+
*/
|
|
74
|
+
get framing() {
|
|
75
|
+
return this.#framing;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Why the WebSocket dial started, once it has: set whichever dial then wins, and updated to `failed` when a slow
|
|
79
|
+
* WebTransport handshake fails while the WebSocket dial is still in progress. It does not change once a dial has
|
|
80
|
+
* won. `undefined` while WebTransport alone is dialing, or once it won alone.
|
|
81
|
+
*/
|
|
82
|
+
get fallback() {
|
|
83
|
+
return this.#fallback;
|
|
70
84
|
}
|
|
71
85
|
/** The protocol the winner's peer selected (TA-8); empty until `ready` resolves. */
|
|
72
86
|
get protocol() {
|
|
@@ -90,6 +104,9 @@ export class FallbackTransport {
|
|
|
90
104
|
let timer;
|
|
91
105
|
let webTransportPending = false;
|
|
92
106
|
let webTransportFailure;
|
|
107
|
+
let webTransportFailed = false;
|
|
108
|
+
/** Set when the runtime refused to construct the dial at all. */
|
|
109
|
+
let webTransportRefused = false;
|
|
93
110
|
let webSocketStarted = false;
|
|
94
111
|
let webSocketFailure;
|
|
95
112
|
const end = (info) => {
|
|
@@ -103,22 +120,24 @@ export class FallbackTransport {
|
|
|
103
120
|
end(info);
|
|
104
121
|
reject(new WebSocketSessionError('the dial was cancelled'));
|
|
105
122
|
};
|
|
106
|
-
const win = (winner,
|
|
123
|
+
const win = (winner, framing) => {
|
|
107
124
|
// A dial ready after the race ended lost it, or was cancelled.
|
|
108
125
|
if (!this.#cancel)
|
|
109
126
|
return closeQuietly(winner);
|
|
110
127
|
this.#dials.delete(winner);
|
|
111
128
|
end();
|
|
112
129
|
this.#winner = winner;
|
|
113
|
-
this.#
|
|
130
|
+
this.#framing = framing;
|
|
131
|
+
const stats = winner.getStats;
|
|
132
|
+
if (framing === 'webtransport' && typeof stats === 'function') {
|
|
133
|
+
this.getStats = () => stats.call(winner);
|
|
134
|
+
}
|
|
114
135
|
// Settled before the callback, so a close() from it closes the winner rather than cancelling a dial.
|
|
115
136
|
resolve(winner);
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
? new WebTransportOutpaced('the WebSocket was ready before the WebTransport handshake completed')
|
|
119
|
-
: webTransportFailure;
|
|
137
|
+
// The WebSocket dial set the report when it started, and nothing changes it once the race has ended.
|
|
138
|
+
if (framing === 'websocket' && this.#fallback) {
|
|
120
139
|
try {
|
|
121
|
-
onFallback?.(
|
|
140
|
+
onFallback?.(this.#fallback);
|
|
122
141
|
}
|
|
123
142
|
catch { }
|
|
124
143
|
}
|
|
@@ -134,6 +153,16 @@ export class FallbackTransport {
|
|
|
134
153
|
if (!this.#cancel || webSocketStarted)
|
|
135
154
|
return;
|
|
136
155
|
webSocketStarted = true;
|
|
156
|
+
this.#fallback = webTransportPending
|
|
157
|
+
? { from: 'webtransport', to: 'websocket', reason: 'slow' }
|
|
158
|
+
: webTransportFailed
|
|
159
|
+
? {
|
|
160
|
+
from: 'webtransport',
|
|
161
|
+
to: 'websocket',
|
|
162
|
+
reason: webTransportRefused ? 'unavailable' : 'failed',
|
|
163
|
+
error: webTransportFailure,
|
|
164
|
+
}
|
|
165
|
+
: { from: 'webtransport', to: 'websocket', reason: 'unavailable' };
|
|
137
166
|
clearTimeout(timer);
|
|
138
167
|
let webSocket;
|
|
139
168
|
try {
|
|
@@ -159,6 +188,8 @@ export class FallbackTransport {
|
|
|
159
188
|
catch (error) {
|
|
160
189
|
// A runtime that refuses the dial outright (a policy, a URL it will not take) falls back too.
|
|
161
190
|
webTransportFailure = error;
|
|
191
|
+
webTransportFailed = true;
|
|
192
|
+
webTransportRefused = true;
|
|
162
193
|
}
|
|
163
194
|
}
|
|
164
195
|
if (!webTransport)
|
|
@@ -171,6 +202,11 @@ export class FallbackTransport {
|
|
|
171
202
|
dial.ready.then(() => win(dial, 'webtransport'), (error) => {
|
|
172
203
|
webTransportPending = false;
|
|
173
204
|
webTransportFailure = error;
|
|
205
|
+
webTransportFailed = true;
|
|
206
|
+
// Slow, then failed: the WebSocket dial is already under way, and now WebTransport could not have won.
|
|
207
|
+
if (this.#fallback?.reason === 'slow' && this.#cancel) {
|
|
208
|
+
this.#fallback = { from: 'webtransport', to: 'websocket', reason: 'failed', error };
|
|
209
|
+
}
|
|
174
210
|
if (this.#dials.delete(dial))
|
|
175
211
|
closeQuietly(dial);
|
|
176
212
|
dialWebSocket();
|
package/dist/fallback.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.js","sourceRoot":"","sources":["../src/fallback.ts"],"names":[],"mappings":"AAKA,OAAO,EAAkB,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,E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AQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACnD;YACE,MAAM,IAAI,SAAS,CAAC,kDAAkD,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7F,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
* @packageDocumentation
|
|
13
13
|
*/
|
|
14
14
|
import type { MoqtTransport } from '@caprid/moq-core';
|
|
15
|
-
import {
|
|
15
|
+
import { FallbackTransport, type WebSocketFallbackOptions, type WebSocketFallbackReport } from './fallback.js';
|
|
16
16
|
export type { CloseInfo } from './errors.js';
|
|
17
17
|
export { WebSocketSessionError } from './errors.js';
|
|
18
|
-
export type {
|
|
18
|
+
export type { FallbackTransport, WebSocketFallbackOptions, WebSocketFallbackReport, } from './fallback.js';
|
|
19
19
|
/** The transport a {@link WebSocketConnection} carries: a `MoqtTransport` that reports the selected protocol. */
|
|
20
20
|
export interface WebSocketMoqtTransport extends MoqtTransport {
|
|
21
21
|
/** The MOQT protocol the peer selected, without its QMux prefix; empty until `ready` resolves. */
|
|
@@ -57,10 +57,18 @@ export interface FallbackConnection {
|
|
|
57
57
|
/** Resolves once one of the dials is ready and its peer selected a protocol. */
|
|
58
58
|
ready: Promise<void>;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
60
|
+
* Which transport the connection runs on, `@caprid/relay`'s `TransportFraming` narrowed to the two this factory
|
|
61
|
+
* dials. It is meaningful only once `ready` has resolved: `'webtransport'` if WebTransport won, `'websocket'` if the
|
|
62
|
+
* WebSocket won. While the dials are in progress it reads `'webtransport'`, which the SDK never reads; the transport's
|
|
63
|
+
* {@link FallbackTransport.framing} is `undefined` then instead. Both carry the path and token in the URL, so the
|
|
64
|
+
* SDK's SETUP is the same either way.
|
|
62
65
|
*/
|
|
63
|
-
readonly framing:
|
|
66
|
+
readonly framing: 'webtransport' | 'websocket';
|
|
67
|
+
/**
|
|
68
|
+
* Why the WebSocket dial started, once it has, for the SDK's client diagnostics (its `TransportFallback`): the
|
|
69
|
+
* transport's {@link FallbackTransport.fallback}.
|
|
70
|
+
*/
|
|
71
|
+
readonly fallback: WebSocketFallbackReport | undefined;
|
|
64
72
|
}
|
|
65
73
|
/** Dials WebTransport, then races QMux over WebSocket against it; see {@link withWebSocketFallback}. */
|
|
66
74
|
export type FallbackTransportFactory = (url: string, protocols: string[]) => FallbackConnection;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAEL,iBAAiB,EAEjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC7B,MAAM,eAAe,CAAC;AAGvB,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,iHAAiH;AACjH,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,kGAAkG;IAClG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,mHAAmH;AACnH,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,SAAS,EAAE,sBAAsB,CAAC;IAClC,qFAAqF;IACrF,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,kHAAkH;IAClH,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,mBAAmB,CAAC;AAElG;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,IAAI,yBAAyB,CAKpE;AAED,mEAAmE;AACnE,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,SAAS,EAAE,iBAAiB,CAAC;IAC7B,gFAAgF;IAChF,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,WAAW,CAAC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,GAAG,SAAS,CAAC;CACxD;AAED,wGAAwG;AACxG,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,kBAAkB,CAAC;AAEhG;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,wBAA6B,GAAG,wBAAwB,CAetG"}
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,10 @@ export function withWebSocketFallback(options = {}) {
|
|
|
43
43
|
transport,
|
|
44
44
|
ready: transport.ready,
|
|
45
45
|
get framing() {
|
|
46
|
-
return transport.
|
|
46
|
+
return transport.framing ?? 'webtransport';
|
|
47
|
+
},
|
|
48
|
+
get fallback() {
|
|
49
|
+
return transport.fallback;
|
|
47
50
|
},
|
|
48
51
|
};
|
|
49
52
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,GAGf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AA6BpD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;QACxB,MAAM,SAAS,GAAG,IAAI,kBAAkB,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;QACzE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IACrE,CAAC,CAAC;AACJ,CAAC;AA0BD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,qBAAqB,CAAC,UAAoC,EAAE;IAC1E,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAC/B,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;QACxB,MAAM,SAAS,GAAG,IAAI,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO;YACL,SAAS;YACT,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,IAAI,OAAO;gBACT,OAAO,SAAS,CAAC,OAAO,IAAI,cAAc,CAAC;YAC7C,CAAC;YACD,IAAI,QAAQ;gBACV,OAAO,SAAS,CAAC,QAAQ,CAAC;YAC5B,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caprid/relay-websocket",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "QMux-over-WebSocket transport adapter for the Relay SDK, for networks and browsers without WebTransport",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@moq/qmux": "0.3.
|
|
25
|
-
"@caprid/moq-core": "0.
|
|
24
|
+
"@moq/qmux": "0.3.5",
|
|
25
|
+
"@caprid/moq-core": "0.7.0"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=24"
|