forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on c35a83aa3f65a20c8a2fdfd2dfdb3e35878741b5Filtered to src/lib/websocket-messages.tsClear filter

2026-08-01

refactor: ♻️ shared WebSocket message parsers and strict page shape - websocket-messages: runtime-validated parsers for exam and board WS frames, replacing the duplicated local unions in exam-room-ws and whiteboard-room-ws; drops the as-any casts on status updates - normalizePage throws PageShapeError on a malformed envelope instead of silently reading it as an empty list, so a backend DTO regression can't masquerade as no dataBurak Boduroğlu · 38703d4
refactor: ♻️ shared WebSocket message parsers and strict page shape
- websocket-messages: runtime-validated parsers for exam and board WS
  frames, replacing the duplicated local unions in exam-room-ws and
  whiteboard-room-ws; drops the as-any casts on status updates
- normalizePage throws PageShapeError on a malformed envelope instead of
  silently reading it as an empty list, so a backend DTO regression
  can't masquerade as no data