Part 2
3 chapters
Contract-first for Sockets
Give a socket a contract with AsyncAPI 3, shape its messages, and version them without breaking a connected client.
Chapter 5
AsyncAPI: Giving a Socket a Contract
AsyncAPI 3 as the single source of truth for a WebSocket channel's messages, validated once and followed by both stacks.
Chapter 6
Message Design
One flat handling-event message, a discriminator enum and four field shapes that both stacks deserialize identically.
Chapter 7
Versioning and Evolution
Classify contract changes as safe or breaking, pick a versioning lever, and retire an old version without cutting off a connected client.