(
send: EncodedMessageSendFn,
)
| 28 | private readonly peer: experimental_ServerPeerWithoutCodec |
| 29 | |
| 30 | constructor( |
| 31 | send: EncodedMessageSendFn, |
| 32 | ) { |
| 33 | // eslint-disable-next-line new-cap |
| 34 | this.peer = new experimental_ServerPeerWithoutCodec(async ([id, type, payload]) => { |
| 35 | await send(await encodeResponseMessage(id, type, payload)) |
| 36 | }) |
| 37 | } |
| 38 | |
| 39 | get length(): number { |
| 40 | return this.peer.length |
nothing calls this directly
no test coverage detected