The current logic for determining whether a stream is incoming or not seems incorrect to me.
Specifically, the logic:
|
const incoming = this.isclient ? !(streamid & 0x1n) : !!(streamid & 0x1n) |
For example, when streamid = 4n:
- This is a client-initiated bidirectional stream.
- If this.isclient === false (i.e., we are the server), this stream should be incoming.
- However, this code returns false.
As I understand it, stream ID 4 should be treated as an incoming stream on the server side.
Am I missing something?