@moq/net 0.4.8 → 0.22.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 +7 -1
- package/announce.d.ts +1 -1
- package/announce.d.ts.map +1 -1
- package/announce.js +1 -1
- package/announce.js.map +1 -1
- package/announced.d.ts +51 -47
- package/announced.d.ts.map +1 -1
- package/announced.js +183 -31
- package/announced.js.map +1 -1
- package/announced.test-util.d.ts +2 -0
- package/announced.test-util.d.ts.map +1 -0
- package/announced.test-util.js +27 -0
- package/announced.test-util.js.map +1 -0
- package/auth.d.ts +64 -0
- package/auth.d.ts.map +1 -0
- package/auth.js +20 -0
- package/auth.js.map +1 -0
- package/auth_gate.d.ts +2 -0
- package/auth_gate.d.ts.map +1 -0
- package/auth_gate.js +24 -0
- package/auth_gate.js.map +1 -0
- package/auth_session.d.ts +49 -0
- package/auth_session.d.ts.map +1 -0
- package/auth_session.js +1097 -0
- package/auth_session.js.map +1 -0
- package/bandwidth.d.ts +129 -25
- package/bandwidth.d.ts.map +1 -1
- package/bandwidth.js +410 -138
- package/bandwidth.js.map +1 -1
- package/bandwidth_api.d.ts +1 -1
- package/bandwidth_api.d.ts.map +1 -1
- package/bandwidth_api.js +1 -1
- package/bandwidth_api.js.map +1 -1
- package/broadcast.d.ts +62 -36
- package/broadcast.d.ts.map +1 -1
- package/broadcast.js +556 -172
- package/broadcast.js.map +1 -1
- package/cache.d.ts +103 -0
- package/cache.d.ts.map +1 -0
- package/cache.js +254 -0
- package/cache.js.map +1 -0
- package/claim.test-util.d.ts +5 -0
- package/claim.test-util.d.ts.map +1 -0
- package/claim.test-util.js +13 -0
- package/claim.test-util.js.map +1 -0
- package/connection/accept.d.ts +20 -12
- package/connection/accept.d.ts.map +1 -1
- package/connection/accept.js +97 -129
- package/connection/accept.js.map +1 -1
- package/connection/browser.d.ts.map +1 -1
- package/connection/browser.js +28 -19
- package/connection/browser.js.map +1 -1
- package/connection/connect.d.ts +119 -23
- package/connection/connect.d.ts.map +1 -1
- package/connection/connect.js +535 -216
- package/connection/connect.js.map +1 -1
- package/connection/dials.d.ts +45 -0
- package/connection/dials.d.ts.map +1 -0
- package/connection/dials.js +109 -0
- package/connection/dials.js.map +1 -0
- package/connection/endpoint.d.ts +60 -0
- package/connection/endpoint.d.ts.map +1 -0
- package/connection/endpoint.js +114 -0
- package/connection/endpoint.js.map +1 -0
- package/connection/forward.d.ts +7 -1
- package/connection/forward.d.ts.map +1 -1
- package/connection/forward.js +265 -80
- package/connection/forward.js.map +1 -1
- package/connection/goaway.d.ts +16 -9
- package/connection/goaway.d.ts.map +1 -1
- package/connection/goaway.js +22 -108
- package/connection/goaway.js.map +1 -1
- package/connection/handshake.d.ts +32 -6
- package/connection/handshake.d.ts.map +1 -1
- package/connection/handshake.js +97 -20
- package/connection/handshake.js.map +1 -1
- package/connection/index.d.ts +3 -6
- package/connection/index.d.ts.map +1 -1
- package/connection/index.js +1 -2
- package/connection/index.js.map +1 -1
- package/connection/liveness.d.ts +14 -0
- package/connection/liveness.d.ts.map +1 -0
- package/connection/liveness.js +30 -0
- package/connection/liveness.js.map +1 -0
- package/connection/pool.d.ts +137 -58
- package/connection/pool.d.ts.map +1 -1
- package/connection/pool.js +281 -117
- package/connection/pool.js.map +1 -1
- package/connection/reload.d.ts +60 -12
- package/connection/reload.d.ts.map +1 -1
- package/connection/reload.js +859 -233
- package/connection/reload.js.map +1 -1
- package/connection/session.d.ts +91 -0
- package/connection/session.d.ts.map +1 -0
- package/connection/session.js +2 -0
- package/connection/session.js.map +1 -0
- package/connection/stats.d.ts +20 -11
- package/connection/stats.d.ts.map +1 -1
- package/connection/stats.js +64 -8
- package/connection/stats.js.map +1 -1
- package/connection/ticker.d.ts +4 -0
- package/connection/ticker.d.ts.map +1 -0
- package/connection/ticker.js +66 -0
- package/connection/ticker.js.map +1 -0
- package/connection/tokens.d.ts +2 -0
- package/connection/tokens.d.ts.map +1 -0
- package/connection/tokens.js +404 -0
- package/connection/tokens.js.map +1 -0
- package/connection/transport.d.ts.map +1 -1
- package/connection/transport.js +4 -4
- package/connection/transport.js.map +1 -1
- package/connection/withdrawal.d.ts +2 -0
- package/connection/withdrawal.d.ts.map +1 -0
- package/connection/withdrawal.js +23 -0
- package/connection/withdrawal.js.map +1 -0
- package/consume.js +213 -46
- package/consume.js.map +1 -1
- package/cover.d.ts +59 -0
- package/cover.d.ts.map +1 -0
- package/cover.js +375 -0
- package/cover.js.map +1 -0
- package/datagram.d.ts +70 -11
- package/datagram.d.ts.map +1 -1
- package/datagram.js +317 -1
- package/datagram.js.map +1 -1
- package/datagram_stream.d.ts +18 -0
- package/datagram_stream.d.ts.map +1 -0
- package/datagram_stream.js +67 -0
- package/datagram_stream.js.map +1 -0
- package/defined.test-util.d.ts +2 -0
- package/defined.test-util.d.ts.map +1 -0
- package/defined.test-util.js +7 -0
- package/defined.test-util.js.map +1 -0
- package/delivered.d.ts +75 -0
- package/delivered.d.ts.map +1 -0
- package/delivered.js +228 -0
- package/delivered.js.map +1 -0
- package/demand.d.ts +173 -0
- package/demand.d.ts.map +1 -0
- package/demand.js +582 -0
- package/demand.js.map +1 -0
- package/drops.d.ts +93 -0
- package/drops.d.ts.map +1 -0
- package/drops.js +283 -0
- package/drops.js.map +1 -0
- package/error.d.ts +120 -21
- package/error.d.ts.map +1 -1
- package/error.js +230 -37
- package/error.js.map +1 -1
- package/errors.d.ts +2 -2
- package/errors.d.ts.map +1 -1
- package/errors.js +2 -2
- package/errors.js.map +1 -1
- package/fill.d.ts +174 -0
- package/fill.d.ts.map +1 -0
- package/fill.js +760 -0
- package/fill.js.map +1 -0
- package/flate/decoder.d.ts +2 -0
- package/flate/decoder.d.ts.map +1 -0
- package/flate/decoder.js +63 -0
- package/flate/decoder.js.map +1 -0
- package/flate/encoder.d.ts +2 -0
- package/flate/encoder.d.ts.map +1 -0
- package/flate/encoder.js +64 -0
- package/flate/encoder.js.map +1 -0
- package/flate/group.d.ts +34 -0
- package/flate/group.d.ts.map +1 -0
- package/flate/group.js +140 -0
- package/flate/group.js.map +1 -0
- package/frame.d.ts +80 -0
- package/frame.d.ts.map +1 -0
- package/frame.js +296 -0
- package/frame.js.map +1 -0
- package/frame.test-util.d.ts +5 -0
- package/frame.test-util.d.ts.map +1 -0
- package/frame.test-util.js +9 -0
- package/frame.test-util.js.map +1 -0
- package/group.d.ts +108 -45
- package/group.d.ts.map +1 -1
- package/group.js +1616 -307
- package/group.js.map +1 -1
- package/group_api.d.ts +7 -0
- package/group_api.d.ts.map +1 -0
- package/group_api.js +7 -0
- package/group_api.js.map +1 -0
- package/hop.d.ts +62 -76
- package/hop.d.ts.map +1 -1
- package/hop.js +92 -64
- package/hop.js.map +1 -1
- package/identity.d.ts +39 -0
- package/identity.d.ts.map +1 -0
- package/identity.js +47 -0
- package/identity.js.map +1 -0
- package/ietf/active_count.d.ts +2 -0
- package/ietf/active_count.d.ts.map +1 -0
- package/ietf/active_count.js +30 -0
- package/ietf/active_count.js.map +1 -0
- package/ietf/aliases.js +69 -35
- package/ietf/aliases.js.map +1 -1
- package/ietf/cluster.d.ts +3 -3
- package/ietf/cluster.js +14 -62
- package/ietf/cluster.js.map +1 -1
- package/ietf/connection.d.ts +1 -31
- package/ietf/connection.d.ts.map +1 -1
- package/ietf/connection.js +305 -143
- package/ietf/connection.js.map +1 -1
- package/ietf/datagram.d.ts +60 -0
- package/ietf/datagram.d.ts.map +1 -0
- package/ietf/datagram.js +152 -0
- package/ietf/datagram.js.map +1 -0
- package/ietf/error.d.ts +3 -3
- package/ietf/error.js +82 -100
- package/ietf/error.js.map +1 -1
- package/ietf/fetch.d.ts +91 -35
- package/ietf/fetch.d.ts.map +1 -1
- package/ietf/fetch.js +172 -93
- package/ietf/fetch.js.map +1 -1
- package/ietf/filter.d.ts +20 -30
- package/ietf/filter.d.ts.map +1 -1
- package/ietf/filter.js +140 -171
- package/ietf/filter.js.map +1 -1
- package/ietf/goaway.d.ts +11 -9
- package/ietf/goaway.d.ts.map +1 -1
- package/ietf/goaway.js +22 -35
- package/ietf/goaway.js.map +1 -1
- package/ietf/hidden.js +1 -1
- package/ietf/hidden.js.map +1 -1
- package/ietf/index.d.ts +2 -14
- package/ietf/index.d.ts.map +1 -1
- package/ietf/index.js +4 -14
- package/ietf/index.js.map +1 -1
- package/ietf/join.d.ts +7 -0
- package/ietf/join.d.ts.map +1 -0
- package/ietf/join.js +234 -0
- package/ietf/join.js.map +1 -0
- package/ietf/message.d.ts +18 -2
- package/ietf/message.d.ts.map +1 -1
- package/ietf/message.js +60 -40
- package/ietf/message.js.map +1 -1
- package/ietf/message.test-util.d.ts +6 -0
- package/ietf/message.test-util.d.ts.map +1 -0
- package/ietf/message.test-util.js +13 -0
- package/ietf/message.test-util.js.map +1 -0
- package/ietf/namespace.d.ts +17 -3
- package/ietf/namespace.d.ts.map +1 -1
- package/ietf/namespace.js +78 -26
- package/ietf/namespace.js.map +1 -1
- package/ietf/object.d.ts +194 -32
- package/ietf/object.d.ts.map +1 -1
- package/ietf/object.js +405 -178
- package/ietf/object.js.map +1 -1
- package/ietf/parameters.d.ts +22 -42
- package/ietf/parameters.d.ts.map +1 -1
- package/ietf/parameters.js +260 -472
- package/ietf/parameters.js.map +1 -1
- package/ietf/priority.d.ts +17 -2
- package/ietf/priority.d.ts.map +1 -1
- package/ietf/priority.js +19 -4
- package/ietf/priority.js.map +1 -1
- package/ietf/properties.d.ts +5 -4
- package/ietf/properties.d.ts.map +1 -1
- package/ietf/properties.js +78 -48
- package/ietf/properties.js.map +1 -1
- package/ietf/publish.d.ts +22 -30
- package/ietf/publish.d.ts.map +1 -1
- package/ietf/publish.js +45 -139
- package/ietf/publish.js.map +1 -1
- package/ietf/publish_namespace.d.ts +46 -69
- package/ietf/publish_namespace.d.ts.map +1 -1
- package/ietf/publish_namespace.js +66 -184
- package/ietf/publish_namespace.js.map +1 -1
- package/ietf/publisher.js +1800 -600
- package/ietf/publisher.js.map +1 -1
- package/ietf/range.d.ts +2 -0
- package/ietf/range.d.ts.map +1 -0
- package/ietf/range.js +222 -0
- package/ietf/range.js.map +1 -0
- package/ietf/request.d.ts +3 -27
- package/ietf/request.d.ts.map +1 -1
- package/ietf/request.js +41 -78
- package/ietf/request.js.map +1 -1
- package/ietf/request_stream.d.ts +1 -6
- package/ietf/request_stream.d.ts.map +1 -1
- package/ietf/request_stream.js +306 -16
- package/ietf/request_stream.js.map +1 -1
- package/ietf/session.d.ts +41 -0
- package/ietf/session.d.ts.map +1 -0
- package/ietf/session.js +65 -0
- package/ietf/session.js.map +1 -0
- package/ietf/setup.d.ts +4 -29
- package/ietf/setup.d.ts.map +1 -1
- package/ietf/setup.js +6 -117
- package/ietf/setup.js.map +1 -1
- package/ietf/setup_options.d.ts +31 -0
- package/ietf/setup_options.d.ts.map +1 -0
- package/ietf/setup_options.js +138 -0
- package/ietf/setup_options.js.map +1 -0
- package/ietf/solicit.js +4 -14
- package/ietf/solicit.js.map +1 -1
- package/ietf/subscribe.d.ts +48 -41
- package/ietf/subscribe.d.ts.map +1 -1
- package/ietf/subscribe.js +118 -239
- package/ietf/subscribe.js.map +1 -1
- package/ietf/subscribe_namespace.d.ts +13 -76
- package/ietf/subscribe_namespace.d.ts.map +1 -1
- package/ietf/subscribe_namespace.js +30 -201
- package/ietf/subscribe_namespace.js.map +1 -1
- package/ietf/subscriber.js +1839 -536
- package/ietf/subscriber.js.map +1 -1
- package/ietf/token.js +105 -27
- package/ietf/token.js.map +1 -1
- package/ietf/track.d.ts +25 -22
- package/ietf/track.d.ts.map +1 -1
- package/ietf/track.js +48 -61
- package/ietf/track.js.map +1 -1
- package/ietf/version.d.ts +13 -42
- package/ietf/version.d.ts.map +1 -1
- package/ietf/version.js +22 -48
- package/ietf/version.js.map +1 -1
- package/implementation.d.ts +2 -0
- package/implementation.d.ts.map +1 -0
- package/implementation.js +5 -0
- package/implementation.js.map +1 -0
- package/index.d.ts +25 -10
- package/index.d.ts.map +1 -1
- package/index.js +19 -6
- package/index.js.map +1 -1
- package/internal.d.ts +1512 -64
- package/internal.d.ts.map +1 -1
- package/internal.js +557 -79
- package/internal.js.map +1 -1
- package/ledger.d.ts +23 -0
- package/ledger.d.ts.map +1 -0
- package/ledger.js +247 -0
- package/ledger.js.map +1 -0
- package/listing.d.ts +132 -0
- package/listing.d.ts.map +1 -0
- package/listing.js +486 -0
- package/listing.js.map +1 -0
- package/lite/announce.d.ts +124 -63
- package/lite/announce.d.ts.map +1 -1
- package/lite/announce.js +384 -158
- package/lite/announce.js.map +1 -1
- package/lite/announce_stream.d.ts +2 -0
- package/lite/announce_stream.d.ts.map +1 -0
- package/lite/announce_stream.js +92 -0
- package/lite/announce_stream.js.map +1 -0
- package/lite/answer.d.ts +22 -0
- package/lite/answer.d.ts.map +1 -0
- package/lite/answer.js +301 -0
- package/lite/answer.js.map +1 -0
- package/lite/auth.d.ts +45 -0
- package/lite/auth.d.ts.map +1 -0
- package/lite/auth.js +204 -0
- package/lite/auth.js.map +1 -0
- package/lite/compat.d.ts +31 -0
- package/lite/compat.d.ts.map +1 -0
- package/lite/compat.js +86 -0
- package/lite/compat.js.map +1 -0
- package/lite/connection.d.ts +1 -45
- package/lite/connection.d.ts.map +1 -1
- package/lite/connection.js +360 -77
- package/lite/connection.js.map +1 -1
- package/lite/datagram-end.d.ts +26 -0
- package/lite/datagram-end.d.ts.map +1 -0
- package/lite/datagram-end.js +30 -0
- package/lite/datagram-end.js.map +1 -0
- package/lite/datagram.d.ts +73 -8
- package/lite/datagram.d.ts.map +1 -1
- package/lite/datagram.js +144 -9
- package/lite/datagram.js.map +1 -1
- package/lite/duration.d.ts +6 -0
- package/lite/duration.d.ts.map +1 -0
- package/lite/duration.js +14 -0
- package/lite/duration.js.map +1 -0
- package/lite/error.d.ts +9 -0
- package/lite/error.d.ts.map +1 -0
- package/lite/error.js +24 -0
- package/lite/error.js.map +1 -0
- package/lite/fills.d.ts +162 -0
- package/lite/fills.d.ts.map +1 -0
- package/lite/fills.js +486 -0
- package/lite/fills.js.map +1 -0
- package/lite/fit.d.ts +49 -0
- package/lite/fit.d.ts.map +1 -0
- package/lite/fit.js +305 -0
- package/lite/fit.js.map +1 -0
- package/lite/goaway.d.ts +1 -1
- package/lite/goaway.d.ts.map +1 -1
- package/lite/goaway.js +5 -13
- package/lite/goaway.js.map +1 -1
- package/lite/group.d.ts +64 -13
- package/lite/group.d.ts.map +1 -1
- package/lite/group.js +108 -30
- package/lite/group.js.map +1 -1
- package/lite/identity.d.ts +25 -0
- package/lite/identity.d.ts.map +1 -0
- package/lite/identity.js +79 -0
- package/lite/identity.js.map +1 -0
- package/lite/index.d.ts +2 -1
- package/lite/index.d.ts.map +1 -1
- package/lite/index.js +2 -1
- package/lite/index.js.map +1 -1
- package/lite/message.d.ts +9 -1
- package/lite/message.d.ts.map +1 -1
- package/lite/message.js +28 -44
- package/lite/message.js.map +1 -1
- package/lite/priority.d.ts +9 -2
- package/lite/priority.d.ts.map +1 -1
- package/lite/priority.js +11 -105
- package/lite/priority.js.map +1 -1
- package/lite/probe.d.ts.map +1 -1
- package/lite/probe.js +9 -0
- package/lite/probe.js.map +1 -1
- package/lite/publisher.d.ts +10 -1
- package/lite/publisher.d.ts.map +1 -1
- package/lite/publisher.js +2548 -437
- package/lite/publisher.js.map +1 -1
- package/lite/routed.d.ts +59 -0
- package/lite/routed.d.ts.map +1 -0
- package/lite/routed.js +564 -0
- package/lite/routed.js.map +1 -0
- package/lite/session.d.ts +1 -27
- package/lite/session.d.ts.map +1 -1
- package/lite/session.js +0 -99
- package/lite/session.js.map +1 -1
- package/lite/setup.d.ts +29 -2
- package/lite/setup.d.ts.map +1 -1
- package/lite/setup.js +95 -21
- package/lite/setup.js.map +1 -1
- package/lite/stream.d.ts +5 -11
- package/lite/stream.d.ts.map +1 -1
- package/lite/stream.js +5 -1
- package/lite/stream.js.map +1 -1
- package/lite/subscribe.d.ts +475 -75
- package/lite/subscribe.d.ts.map +1 -1
- package/lite/subscribe.js +1373 -142
- package/lite/subscribe.js.map +1 -1
- package/lite/subscriber.d.ts +7 -44
- package/lite/subscriber.d.ts.map +1 -1
- package/lite/subscriber.js +3290 -515
- package/lite/subscriber.js.map +1 -1
- package/lite/track.d.ts +24 -9
- package/lite/track.d.ts.map +1 -1
- package/lite/track.js +116 -37
- package/lite/track.js.map +1 -1
- package/lite/tracks.d.ts +55 -0
- package/lite/tracks.d.ts.map +1 -0
- package/lite/tracks.js +114 -0
- package/lite/tracks.js.map +1 -0
- package/lite/version.d.ts +132 -24
- package/lite/version.d.ts.map +1 -1
- package/lite/version.js +378 -33
- package/lite/version.js.map +1 -1
- package/meta.d.ts +77 -0
- package/meta.d.ts.map +1 -0
- package/meta.js +130 -0
- package/meta.js.map +1 -0
- package/meta_api.d.ts +7 -0
- package/meta_api.d.ts.map +1 -0
- package/meta_api.js +7 -0
- package/meta_api.js.map +1 -0
- package/mint.d.ts +28 -0
- package/mint.d.ts.map +1 -0
- package/mint.js +66 -0
- package/mint.js.map +1 -0
- package/open.d.ts +63 -0
- package/open.d.ts.map +1 -0
- package/open.js +250 -0
- package/open.js.map +1 -0
- package/origin.d.ts +392 -140
- package/origin.d.ts.map +1 -1
- package/origin.js +2533 -686
- package/origin.js.map +1 -1
- package/package.json +8 -13
- package/path.d.ts +51 -51
- package/path.d.ts.map +1 -1
- package/path.js +210 -57
- package/path.js.map +1 -1
- package/payload.d.ts +33 -0
- package/payload.d.ts.map +1 -0
- package/payload.js +65 -0
- package/payload.js.map +1 -0
- package/prefix.d.ts +152 -0
- package/prefix.d.ts.map +1 -0
- package/prefix.js +349 -0
- package/prefix.js.map +1 -0
- package/priority.d.ts +8 -0
- package/priority.d.ts.map +1 -0
- package/priority.js +185 -0
- package/priority.js.map +1 -0
- package/queue.d.ts +2 -0
- package/queue.d.ts.map +1 -0
- package/queue.js +46 -0
- package/queue.js.map +1 -0
- package/ranges.d.ts +36 -0
- package/ranges.d.ts.map +1 -0
- package/ranges.js +312 -0
- package/ranges.js.map +1 -0
- package/rescale.d.ts +24 -0
- package/rescale.d.ts.map +1 -0
- package/rescale.js +39 -0
- package/rescale.js.map +1 -0
- package/resume.d.ts +55 -0
- package/resume.d.ts.map +1 -0
- package/resume.js +4173 -0
- package/resume.js.map +1 -0
- package/resume.test-util.d.ts +2 -0
- package/resume.test-util.d.ts.map +1 -0
- package/resume.test-util.js +25 -0
- package/resume.test-util.js.map +1 -0
- package/skips.d.ts +48 -0
- package/skips.d.ts.map +1 -0
- package/skips.js +182 -0
- package/skips.js.map +1 -0
- package/stream.d.ts +75 -37
- package/stream.d.ts.map +1 -1
- package/stream.js +236 -92
- package/stream.js.map +1 -1
- package/subscription.test-util.d.ts +2 -0
- package/subscription.test-util.d.ts.map +1 -0
- package/subscription.test-util.js +49 -0
- package/subscription.test-util.js.map +1 -0
- package/tail.d.ts +23 -14
- package/tail.d.ts.map +1 -1
- package/tail.js +224 -97
- package/tail.js.map +1 -1
- package/time.d.ts +41 -102
- package/time.d.ts.map +1 -1
- package/time.js +129 -91
- package/time.js.map +1 -1
- package/timed.d.ts +21 -0
- package/timed.d.ts.map +1 -0
- package/timed.js +2 -0
- package/timed.js.map +1 -0
- package/track.d.ts +577 -245
- package/track.d.ts.map +1 -1
- package/track.js +7306 -771
- package/track.js.map +1 -1
- package/track_api.d.ts +7 -0
- package/track_api.d.ts.map +1 -0
- package/track_api.js +7 -0
- package/track_api.js.map +1 -0
- package/util/abort.d.ts +1 -0
- package/util/abort.d.ts.map +1 -1
- package/util/abort.js +23 -1
- package/util/abort.js.map +1 -1
- package/util/announce.d.ts +4 -0
- package/util/announce.d.ts.map +1 -0
- package/util/announce.js +11 -0
- package/util/announce.js.map +1 -0
- package/util/bigint.d.ts +3 -0
- package/util/bigint.d.ts.map +1 -0
- package/util/bigint.js +8 -0
- package/util/bigint.js.map +1 -0
- package/util/change.d.ts +12 -0
- package/util/change.d.ts.map +1 -0
- package/util/change.js +18 -0
- package/util/change.js.map +1 -0
- package/util/deadline.d.ts +2 -0
- package/util/deadline.d.ts.map +1 -0
- package/util/deadline.js +108 -0
- package/util/deadline.js.map +1 -0
- package/util/decode_error.d.ts +3 -0
- package/util/decode_error.d.ts.map +1 -0
- package/util/decode_error.js +11 -0
- package/util/decode_error.js.map +1 -0
- package/util/demand.d.ts +8 -0
- package/util/demand.d.ts.map +1 -0
- package/util/demand.js +24 -0
- package/util/demand.js.map +1 -0
- package/util/given_up.d.ts +2 -0
- package/util/given_up.d.ts.map +1 -0
- package/util/given_up.js +101 -0
- package/util/given_up.js.map +1 -0
- package/util/hex.d.ts +6 -0
- package/util/hex.d.ts.map +1 -1
- package/util/hex.js +19 -4
- package/util/hex.js.map +1 -1
- package/util/key.d.ts +15 -0
- package/util/key.d.ts.map +1 -0
- package/util/key.js +38 -0
- package/util/key.js.map +1 -0
- package/util/limits.d.ts +2 -0
- package/util/limits.d.ts.map +1 -0
- package/util/limits.js +76 -0
- package/util/limits.js.map +1 -0
- package/util/observed.d.ts +23 -0
- package/util/observed.d.ts.map +1 -0
- package/util/observed.js +122 -0
- package/util/observed.js.map +1 -0
- package/util/sorted.d.ts +2 -0
- package/util/sorted.d.ts.map +1 -0
- package/util/sorted.js +149 -0
- package/util/sorted.js.map +1 -0
- package/util/timeout.d.ts +2 -1
- package/util/timeout.d.ts.map +1 -1
- package/util/timeout.js +13 -9
- package/util/timeout.js.map +1 -1
- package/util/timer.d.ts +2 -0
- package/util/timer.d.ts.map +1 -0
- package/util/timer.js +19 -0
- package/util/timer.js.map +1 -0
- package/util/utf8.d.ts +2 -0
- package/util/utf8.d.ts.map +1 -1
- package/util/utf8.js +7 -1
- package/util/utf8.js.map +1 -1
- package/util/varint.d.ts.map +1 -1
- package/util/varint.js +8 -1
- package/util/varint.js.map +1 -1
- package/util/watch.d.ts +8 -0
- package/util/watch.d.ts.map +1 -0
- package/util/watch.js +38 -0
- package/util/watch.js.map +1 -0
- package/util/yield.d.ts +2 -0
- package/util/yield.d.ts.map +1 -0
- package/util/yield.js +31 -0
- package/util/yield.js.map +1 -0
- package/varint.d.ts +0 -29
- package/varint.d.ts.map +1 -1
- package/varint.js +7 -28
- package/varint.js.map +1 -1
- package/varint_api.d.ts +7 -0
- package/varint_api.d.ts.map +1 -0
- package/varint_api.js +7 -0
- package/varint_api.js.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +4 -0
- package/version.js.map +1 -0
- package/window.d.ts +570 -0
- package/window.d.ts.map +1 -0
- package/window.js +1677 -0
- package/window.js.map +1 -0
- package/wire.d.ts +145 -30
- package/wire.d.ts.map +1 -1
- package/wire.js +27 -0
- package/wire.js.map +1 -1
- package/connection/established.d.ts +0 -53
- package/connection/established.d.ts.map +0 -1
- package/connection/established.js +0 -2
- package/connection/established.js.map +0 -1
- package/ietf/adapter.d.ts +0 -75
- package/ietf/adapter.d.ts.map +0 -1
- package/ietf/adapter.js +0 -699
- package/ietf/adapter.js.map +0 -1
- package/lite/datagram_stream.d.ts +0 -8
- package/lite/datagram_stream.d.ts.map +0 -1
- package/lite/datagram_stream.js +0 -43
- package/lite/datagram_stream.js.map +0 -1
- package/lite/fetch.d.ts +0 -28
- package/lite/fetch.d.ts.map +0 -1
- package/lite/fetch.js +0 -78
- package/lite/fetch.js.map +0 -1
- package/util/log.d.ts +0 -5
- package/util/log.d.ts.map +0 -1
- package/util/log.js +0 -16
- package/util/log.js.map +0 -1
- package/zod.d.ts +0 -13
- package/zod.d.ts.map +0 -1
- package/zod.js +0 -18
- package/zod.js.map +0 -1
package/connection/pool.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A reconnecting, shareable connection: one origin and
|
|
2
|
+
* A reconnecting, shareable connection: one origin and reconnect loop per URL and version list.
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
+
import { Duration } from "@moq/clock";
|
|
6
7
|
import { type GetPromise, type Getter, Signal } from "@moq/signals";
|
|
7
|
-
import * as Announce from "../
|
|
8
|
-
import type
|
|
8
|
+
import type * as Announce from "../announce.ts";
|
|
9
|
+
import type * as Auth from "../auth.ts";
|
|
10
|
+
import type { Handle, Viewers } from "../bandwidth.ts";
|
|
9
11
|
import * as Origin from "../origin.ts";
|
|
10
12
|
import * as Path from "../path.ts";
|
|
11
|
-
import * as Time from "../time.ts";
|
|
12
13
|
import { type AcceptProps as AcceptPropsType, accept } from "./accept.ts";
|
|
13
14
|
import { isWebTransportSupported } from "./browser.ts";
|
|
14
|
-
import { type CertificateHash as CertificateHashType, type ConnectProps as ConnectPropsType, certificateHash, connect, type WebSocketProps as WebSocketPropsType, type WebTransportProps as WebTransportPropsType } from "./connect.ts";
|
|
15
|
-
import
|
|
16
|
-
import type {
|
|
17
|
-
import {
|
|
18
|
-
import type
|
|
15
|
+
import { type CertificateHash as CertificateHashType, type ConnectProps as ConnectPropsType, certificateHash, checkVersions, connect, type WebSocketProps as WebSocketPropsType, type WebTransportProps as WebTransportPropsType } from "./connect.ts";
|
|
16
|
+
import { Dials as DialsClass, type Dial as DialType } from "./dials.ts";
|
|
17
|
+
import type { Goaway as GoawayType, Handover as HandoverType, Redirect as RedirectType } from "./goaway.ts";
|
|
18
|
+
import type { Liveness as LivenessType } from "./liveness.ts";
|
|
19
|
+
import { type Backoff as BackoffType, type ReloadStatus } from "./reload.ts";
|
|
20
|
+
import type { Session as SessionType } from "./session.ts";
|
|
21
|
+
import type { Probe as ProbeType, Sample as SampleType, Stats as StatsType } from "./stats.ts";
|
|
19
22
|
import type { Transport as TransportType } from "./transport.ts";
|
|
20
23
|
/** Options for {@link Connection}. */
|
|
21
24
|
export interface ConnectionProps {
|
|
@@ -24,37 +27,52 @@ export interface ConnectionProps {
|
|
|
24
27
|
/** Whether to connect at all (default: true); pass a `Signal` to toggle live. */
|
|
25
28
|
enabled?: boolean | Signal<boolean>;
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* The window is what makes moving an element around the DOM free: the connection and
|
|
30
|
-
* everything it discovered are still warm when the new owner asks for them. The longest
|
|
31
|
-
* linger requested by any handle sharing the connection wins.
|
|
32
|
-
*/
|
|
33
|
-
linger?: Time.Milli;
|
|
34
|
-
/**
|
|
35
|
-
* Share a pooled transport keyed on the URL. By default, options specific to this
|
|
36
|
-
* handle use a private reconnect loop; otherwise connections share by URL.
|
|
30
|
+
* Share a pooled transport keyed on the URL and ordered versions. By default, options specific to this
|
|
31
|
+
* handle use a private reconnect loop; otherwise connections share by URL and versions.
|
|
37
32
|
* Explicit `true` refuses options a pool cannot honor.
|
|
38
33
|
*/
|
|
39
34
|
share?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Protocol versions to offer, most preferred first, spelled like `moq-lite-06`; connections pool by
|
|
37
|
+
* URL and this list. Pass a `Signal` to switch versions live.
|
|
38
|
+
*/
|
|
39
|
+
versions?: readonly string[] | Signal<readonly string[] | undefined>;
|
|
40
40
|
/** WebTransport options applied to each connection attempt (not reactive). */
|
|
41
41
|
webtransport?: WebTransportPropsType;
|
|
42
42
|
/** WebSocket fallback options applied to each connection attempt (not reactive). */
|
|
43
43
|
websocket?: WebSocketPropsType;
|
|
44
|
-
/** Whether the relay supports broadcast discovery. */
|
|
45
|
-
discovery?: boolean;
|
|
46
44
|
/** The origin whose broadcasts are served, spanning reconnects. Implies a private loop. */
|
|
47
45
|
publish?: Origin.Consumer;
|
|
48
46
|
/** The origin fed with the peer's announced broadcasts, spanning reconnects. Implies a private loop. */
|
|
49
47
|
consume?: Origin.Producer;
|
|
48
|
+
/** Price each session's link; see {@link ConnectProps.cost}. Implies a private loop. */
|
|
49
|
+
cost?: Origin.Cost;
|
|
50
50
|
/** Backoff settings for the reconnect loop; an unset field uses its default. */
|
|
51
|
-
|
|
51
|
+
backoff?: BackoffType;
|
|
52
|
+
/**
|
|
53
|
+
* Credentials to present, kept apart from the URL; see {@link ConnectProps.tokens}. Pass a
|
|
54
|
+
* `Signal` to replace them before they expire, or {@link Connection.Dials} to sign a set for
|
|
55
|
+
* each dial when it starts, which serves one connection: passing it to another throws.
|
|
56
|
+
* Implies a private loop.
|
|
57
|
+
*/
|
|
58
|
+
tokens?: readonly string[] | Signal<readonly string[]> | DialsClass;
|
|
59
|
+
/**
|
|
60
|
+
* Carry the connection credential, the first token, in the URL's `auth` query parameter
|
|
61
|
+
* instead of SETUP and `jwt`; see {@link ConnectProps.urlAuth}. Implies a private loop.
|
|
62
|
+
*/
|
|
63
|
+
urlAuth?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Maximum time for each connection attempt, the dial and the MoQ handshake (default:
|
|
66
|
+
* 30 s; `null` waits forever). An attempt that outlives it is retried like any other
|
|
67
|
+
* failure. The same bound as the `timeout` option of {@link Connection.connect}.
|
|
68
|
+
*/
|
|
69
|
+
timeout?: Duration | null;
|
|
52
70
|
/**
|
|
53
71
|
* How to react to the relay's GOAWAY; an unset field uses its default. Every connection
|
|
54
72
|
* migrates on GOAWAY, dialing the replacement while the old session finishes its groups.
|
|
55
73
|
* This only tunes where it may go and for how long the old session serves.
|
|
56
74
|
*/
|
|
57
|
-
goaway?:
|
|
75
|
+
goaway?: HandoverType;
|
|
58
76
|
/** A Connection owns the abort signal for each connection attempt. */
|
|
59
77
|
signal?: never;
|
|
60
78
|
/** A one-shot transport cannot be reused by the reconnect loop; call {@link Connection.connect} instead. */
|
|
@@ -62,27 +80,26 @@ export interface ConnectionProps {
|
|
|
62
80
|
}
|
|
63
81
|
/**
|
|
64
82
|
* A cloneable handle on a MoQ connection: `new Connection({ url })` reconnects and, by
|
|
65
|
-
* default, shares one origin and
|
|
83
|
+
* default, shares one origin and reconnect loop with handles using the same URL and versions.
|
|
66
84
|
*
|
|
67
85
|
* The shared {@link origin} is wired to both directions. Everything the relay announces
|
|
68
86
|
* lands in it, a publish into it is announced to the relay, and a page that publishes and
|
|
69
87
|
* watches the same path resolves it locally with no round trip.
|
|
70
88
|
*
|
|
71
|
-
* {@link close} releases this handle; the connection survives its last handle by a
|
|
72
|
-
* linger window
|
|
73
|
-
* reuses the warm connection instead of redialing.
|
|
89
|
+
* {@link close} releases this handle; the connection survives its last handle by a two-second
|
|
90
|
+
* linger window, so a component torn down and rebuilt reuses the warm connection instead of redialing.
|
|
74
91
|
*
|
|
75
92
|
* The loop reconnects for as long as a handle holds it, so an outage of any length recovers
|
|
76
93
|
* on its own. An auth rejection stops retrying those credentials and retires the shared
|
|
77
94
|
* connection so the next handle dials fresh; a new URL on this handle starts another
|
|
78
|
-
*
|
|
95
|
+
* key. {@link closed} settles only when this handle is released.
|
|
79
96
|
*
|
|
80
97
|
* A relay's GOAWAY migrates rather than drops: the replacement dials at once while the old
|
|
81
98
|
* session finishes its groups, and the handle and its origin carry across. A redirect the
|
|
82
|
-
*
|
|
99
|
+
* `goaway` policy refuses stops the loop like an auth rejection does.
|
|
83
100
|
*
|
|
84
|
-
* Options the pool cannot honor (transport options,
|
|
85
|
-
* certificate, caller-owned origins) use a private loop. An explicit `share: true`
|
|
101
|
+
* Options the pool cannot honor (transport options, backoff, timeout, goaway, tokens, a credential
|
|
102
|
+
* in the URL, a pinned certificate, caller-owned origins) use a private loop. An explicit `share: true`
|
|
86
103
|
* refuses them. A supplied transport cannot reconnect at all; pass it to {@link Connection.connect}
|
|
87
104
|
* instead.
|
|
88
105
|
*
|
|
@@ -90,6 +107,8 @@ export interface ConnectionProps {
|
|
|
90
107
|
*/
|
|
91
108
|
export declare class Connection {
|
|
92
109
|
#private;
|
|
110
|
+
/** Tokens a connection asks for at each dial: pass one as `tokens` and answer its {@link Dials.next} dials. */
|
|
111
|
+
static readonly Dials: typeof DialsClass;
|
|
93
112
|
/** Establish a one-shot session; a supplied transport belongs here, not in the reconnect loop. */
|
|
94
113
|
static readonly connect: typeof connect;
|
|
95
114
|
/** Accept a one-shot session on an already-open transport. */
|
|
@@ -98,8 +117,12 @@ export declare class Connection {
|
|
|
98
117
|
static readonly certificateHash: typeof certificateHash;
|
|
99
118
|
/** Whether this runtime can connect with WebTransport. */
|
|
100
119
|
static readonly isWebTransportSupported: typeof isWebTransportSupported;
|
|
120
|
+
/** Copy a version list that can be offered, throwing a `TypeError` if it is empty or has an unsupported or duplicate name. */
|
|
121
|
+
static readonly checkVersions: typeof checkVersions;
|
|
101
122
|
/** Relay URL to connect to; updating it reconnects to that URL. */
|
|
102
123
|
url: Signal<URL | undefined>;
|
|
124
|
+
/** Protocol versions to offer, or undefined for the defaults; updating it reconnects with that list. */
|
|
125
|
+
versions: Signal<readonly string[] | undefined>;
|
|
103
126
|
/** Whether to hold a connection at all; clearing it releases this handle's share. */
|
|
104
127
|
enabled: Signal<boolean>;
|
|
105
128
|
/** Current status of the connection. */
|
|
@@ -107,10 +130,16 @@ export declare class Connection {
|
|
|
107
130
|
/**
|
|
108
131
|
* The failure that stopped retrying the current URL, or undefined while the loop is live.
|
|
109
132
|
*
|
|
110
|
-
* Set on an auth rejection
|
|
111
|
-
*
|
|
133
|
+
* Set on an auth rejection, when a private retry window expires, or when {@link versions} names
|
|
134
|
+
* one this build cannot offer. Cleared when a new URL or version list, or a disable/re-enable,
|
|
135
|
+
* starts another key, not on a page hide/show.
|
|
112
136
|
*/
|
|
113
137
|
readonly error: Getter<Error | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* Why the connection is retrying: how its last attempt or session ended, cleared once a
|
|
140
|
+
* session serves again or a new URL starts. Mirrors Rust's `Monitor::failure()`.
|
|
141
|
+
*/
|
|
142
|
+
readonly failure: Getter<Error | undefined>;
|
|
114
143
|
/**
|
|
115
144
|
* The wire transport the current session runs over, or undefined while disconnected.
|
|
116
145
|
*
|
|
@@ -118,17 +147,29 @@ export declare class Connection {
|
|
|
118
147
|
* or reconfigure it, and everything else it offers is reachable through {@link origin}.
|
|
119
148
|
*/
|
|
120
149
|
readonly transport: Getter<TransportType | undefined>;
|
|
121
|
-
/**
|
|
150
|
+
/** Receive estimates while observed, or undefined while disconnected; peek does not request them. */
|
|
122
151
|
readonly probe: Getter<ProbeType | undefined>;
|
|
152
|
+
/** The latest transport counters, sampled while observed on a connection supporting getStats. */
|
|
153
|
+
readonly sample: Getter<SampleType | undefined>;
|
|
154
|
+
/** The current session's liveness, or undefined on a transport that can't probe its peer (WebTransport, qmux-00) or while disconnected. */
|
|
155
|
+
readonly liveness: Getter<LivenessType | undefined>;
|
|
123
156
|
/**
|
|
124
157
|
* The send-side bandwidth allocator for the current URL, or undefined
|
|
125
158
|
* while disabled or URL-less.
|
|
126
159
|
*
|
|
127
|
-
* Every handle on this URL shares the same
|
|
160
|
+
* Every handle on this URL shares the same identity, so publishers reserve
|
|
128
161
|
* against one registry. Borrowed, not owned: the type has no close, since
|
|
129
162
|
* closing it would starve every other handle.
|
|
130
163
|
*/
|
|
131
|
-
readonly
|
|
164
|
+
readonly allocator: Getter<Handle | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* The receive-side registry for the current URL, or undefined while disabled or URL-less.
|
|
167
|
+
*
|
|
168
|
+
* Every handle on this URL shares the same identity, so players watching over one
|
|
169
|
+
* connection split its receive estimate instead of each selecting against all of it,
|
|
170
|
+
* and their ceilings summed are the PROBE target. Borrowed, not owned: it has no close.
|
|
171
|
+
*/
|
|
172
|
+
readonly viewers: Getter<Pick<Viewers, "watch" | "setTarget" | "target"> | undefined>;
|
|
132
173
|
/**
|
|
133
174
|
* The origin for the current URL, or undefined while disabled or URL-less.
|
|
134
175
|
*
|
|
@@ -138,6 +179,16 @@ export declare class Connection {
|
|
|
138
179
|
* every other handle.
|
|
139
180
|
*/
|
|
140
181
|
readonly origin: Getter<Origin.Table | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* The auth handle every session presents, or undefined while disabled or URL-less.
|
|
184
|
+
*
|
|
185
|
+
* Every session the connection makes presents the tokens it holds, so a route naming one
|
|
186
|
+
* keeps it across a reconnect, and its grant follows the live session. A private
|
|
187
|
+
* connection keeps one handle across URL changes, so its tokens go to the new URL, and
|
|
188
|
+
* starts another when `versions` changes. A shared connection's is the one every other
|
|
189
|
+
* handle on its URL uses, since they share the session.
|
|
190
|
+
*/
|
|
191
|
+
readonly auth: Getter<Auth.Handle | undefined>;
|
|
141
192
|
/**
|
|
142
193
|
* Settles once this handle is released via {@link close}: `null` on a clean close, or
|
|
143
194
|
* the abort {@link Error}. Peek it synchronously (`undefined` while open), observe it
|
|
@@ -145,7 +196,7 @@ export declare class Connection {
|
|
|
145
196
|
*/
|
|
146
197
|
get closed(): GetPromise<Error | null>;
|
|
147
198
|
/**
|
|
148
|
-
* Take a handle on the connection for
|
|
199
|
+
* Take a handle on the connection for the `url` option.
|
|
149
200
|
*
|
|
150
201
|
* Dials immediately when a URL is given and `enabled` is not false; otherwise waits for
|
|
151
202
|
* the signals to say go. The handle owns nothing but its own share: {@link close}
|
|
@@ -154,48 +205,76 @@ export declare class Connection {
|
|
|
154
205
|
*/
|
|
155
206
|
constructor(props?: ConnectionProps);
|
|
156
207
|
/**
|
|
157
|
-
* Subscribe to broadcast announcements
|
|
208
|
+
* Subscribe to broadcast announcements at or beneath `prefix`, spanning reconnects
|
|
158
209
|
* and URL switches: a switch retracts everything from
|
|
159
210
|
* the old relay's origin, then the new one's arrivals stream in.
|
|
160
211
|
*/
|
|
161
|
-
announced(
|
|
212
|
+
announced(prefix?: Path.Valid, options?: Announce.Options): Announce.Consumer;
|
|
162
213
|
/** Snapshot the live connection's transport counters, or undefined while disconnected. */
|
|
163
214
|
stats(): Promise<StatsType | undefined>;
|
|
164
215
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
216
|
+
* Resolve once the peer first answers the latest {@link ConnectionProps.tokens}, as Rust's
|
|
217
|
+
* `Tokens::poll_answered` does: each token the latest set newly presented, or the initial
|
|
218
|
+
* ones before any set, is granted in band, or is the connection credential a dial carried and
|
|
219
|
+
* the peer accepted. A token the set kept, the connection credential included, counts only
|
|
220
|
+
* once the peer refuses it, and nothing is re-checked after the answer. A set replaced before
|
|
221
|
+
* its answer moves the wait to the new one, and a connection with no tokens answers at once.
|
|
222
|
+
*
|
|
223
|
+
* An app that re-signs its credential for each dial can end the connection on a refusal by
|
|
224
|
+
* aborting its {@link auth} handle, which makes the loop give up with that error.
|
|
225
|
+
*
|
|
226
|
+
* Waits while no connection is held, such as before a URL is set.
|
|
227
|
+
*
|
|
228
|
+
* @throws The peer's refusal, an `Unsupported` error when the session cannot carry a token in
|
|
229
|
+
* band, the connection's end such as an abort of its auth handle, or the failure that stopped
|
|
230
|
+
* it retrying its URL while no session answered, such as a refused first dial.
|
|
231
|
+
*/
|
|
232
|
+
answered(): Promise<void>;
|
|
233
|
+
/**
|
|
234
|
+
* Release this handle. The shared connection drains and closes once its last handle is
|
|
235
|
+
* gone and the linger window passes; other handles on the URL are unaffected. Idempotent.
|
|
167
236
|
*/
|
|
168
237
|
close(abort?: Error): void;
|
|
169
238
|
}
|
|
170
239
|
/** Types on {@link Connection}: the handle is the class, these are its associated types. */
|
|
171
240
|
export declare namespace Connection {
|
|
172
|
-
/** Options for {@link Connection}. */
|
|
241
|
+
/** Options for {@link Connection}. @reexport */
|
|
173
242
|
type Props = ConnectionProps;
|
|
174
|
-
/** Options for {@link Connection.connect}. */
|
|
243
|
+
/** Options for {@link Connection.connect}. @reexport */
|
|
175
244
|
type ConnectProps = ConnectPropsType;
|
|
176
|
-
/** Options for {@link Connection.accept}. */
|
|
245
|
+
/** Options for {@link Connection.accept}. @reexport */
|
|
177
246
|
type AcceptProps = AcceptPropsType;
|
|
178
|
-
/** Backoff settings for a private reconnect loop. */
|
|
179
|
-
type Backoff =
|
|
180
|
-
/** How a connection
|
|
181
|
-
type
|
|
182
|
-
/** What to do with the URI a relay names in its GOAWAY. */
|
|
247
|
+
/** Backoff settings for a private reconnect loop. @reexport */
|
|
248
|
+
type Backoff = BackoffType;
|
|
249
|
+
/** How a connection hands over to a new session after the relay's GOAWAY. @reexport */
|
|
250
|
+
type Handover = HandoverType;
|
|
251
|
+
/** What to do with the URI a relay names in its GOAWAY. @reexport */
|
|
183
252
|
type Redirect = RedirectType;
|
|
184
|
-
/**
|
|
253
|
+
/** A relay's GOAWAY as a session received it. @reexport */
|
|
254
|
+
type Goaway = GoawayType;
|
|
255
|
+
/** Current state of a {@link Connection}. @reexport */
|
|
185
256
|
type Status = ReloadStatus;
|
|
186
|
-
/** The current connection's PROBE estimates. */
|
|
257
|
+
/** The current connection's PROBE estimates. @reexport */
|
|
187
258
|
type Probe = ProbeType;
|
|
188
|
-
/** A point-in-time snapshot of the transport's counters. */
|
|
259
|
+
/** A point-in-time snapshot of the transport's counters. @reexport */
|
|
189
260
|
type Stats = StatsType;
|
|
190
|
-
/**
|
|
261
|
+
/** Transport counters with their sampling instant. @reexport */
|
|
262
|
+
type Sample = SampleType;
|
|
263
|
+
/** The wire transport a session runs over. @reexport */
|
|
191
264
|
type Transport = TransportType;
|
|
192
|
-
/** Tuning for the WebSocket fallback. */
|
|
265
|
+
/** Tuning for the WebSocket fallback. @reexport */
|
|
193
266
|
type WebSocketProps = WebSocketPropsType;
|
|
194
|
-
/**
|
|
267
|
+
/** Whether a session heard from its peer within twice its probe interval. @reexport */
|
|
268
|
+
type Liveness = LivenessType;
|
|
269
|
+
/** WebTransport options, including friendlier certificate pinning. @reexport */
|
|
195
270
|
type WebTransportProps = WebTransportPropsType;
|
|
196
|
-
/** A server certificate hash used to pin a self-signed server. */
|
|
271
|
+
/** A server certificate hash used to pin a self-signed server. @reexport */
|
|
197
272
|
type CertificateHash = CertificateHashType;
|
|
198
|
-
/** An established one-shot
|
|
199
|
-
type
|
|
273
|
+
/** An established MoQ session, as a one-shot connect or accept returns it. @reexport */
|
|
274
|
+
type Session = SessionType;
|
|
275
|
+
/** Tokens a connection asks for at each dial. @reexport */
|
|
276
|
+
type Dials = DialsClass;
|
|
277
|
+
/** One dial waiting for its tokens. @reexport */
|
|
278
|
+
type Dial = DialType;
|
|
200
279
|
}
|
|
201
280
|
//# sourceMappingURL=pool.d.ts.map
|
package/connection/pool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/connection/pool.ts"],"names":[],"mappings":"AAA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