chore: run prettier
This commit was merged in pull request #46.
This commit is contained in:
@@ -1,2 +1,8 @@
|
||||
export { DataChannelTransport, openDataChannel, acceptDataChannel } from "./transport.js"
|
||||
export type { DataChannel, PeerConnection, ChannelInit, TransportOptions, ChannelOptions } from "./transport.js"
|
||||
export type {
|
||||
DataChannel,
|
||||
PeerConnection,
|
||||
ChannelInit,
|
||||
TransportOptions,
|
||||
ChannelOptions,
|
||||
} from "./transport.js"
|
||||
|
||||
@@ -1,2 +1,8 @@
|
||||
export type { DataChannel, PeerConnection, ChannelInit, TransportOptions, ChannelOptions } from "./transport.js"
|
||||
export type {
|
||||
DataChannel,
|
||||
PeerConnection,
|
||||
ChannelInit,
|
||||
TransportOptions,
|
||||
ChannelOptions,
|
||||
} from "./transport.js"
|
||||
export { DataChannelTransport, openDataChannel, acceptDataChannel } from "./transport.js"
|
||||
|
||||
@@ -287,7 +287,10 @@ suite("DataChannelTransport", () => {
|
||||
const [a, b] = mockChannelPair()
|
||||
a.open()
|
||||
b.open()
|
||||
const [ta] = await Promise.all([acceptDataChannel(a, { sendHighWatermark: 0, sendLowWatermark: 0 }), acceptDataChannel(b)])
|
||||
const [ta] = await Promise.all([
|
||||
acceptDataChannel(a, { sendHighWatermark: 0, sendLowWatermark: 0 }),
|
||||
acceptDataChannel(b),
|
||||
])
|
||||
// send a byte to trigger backpressure (highWatermark=0 means any non-zero bufferedAmount blocks)
|
||||
const writePromise = ta.write(enc.encode("x"))
|
||||
a.triggerError(new Error("gone"))
|
||||
|
||||
Reference in New Issue
Block a user