warn on unhandled stream packets

This commit is contained in:
David Ventura
2024-05-02 13:18:15 +02:00
parent 7ca795c917
commit 68fe0fb798
+3 -1
View File
@@ -241,8 +241,10 @@ export const handle_Drw = (session: Session, dv: DataView) => {
const m_stream = dv.add(5).readU8(); // data = 1, control = 0
if (m_stream == 1) {
deal_with_data(session, dv);
} else {
} else if (m_stream == 0) {
const b = createResponseForControlCommand(session, dv);
b.forEach(session.send);
} else {
logger.warning(`Received a Drw packet with stream tag: ${m_stream}, which is not implemented`);
}
};