Register message schemas for use with the room
Call this before main() to define your custom messages
The registry is flat and global: a key names the same message for every peer in
the room. Registering one twice is therefore reported — the last schema wins,
and any peer still holding the earlier one decodes the payload as garbage.
Keys under ~sdk/ are reserved for SDK-internal messages and are not registered.
Register message schemas for use with the room Call this before main() to define your custom messages
The registry is flat and global: a key names the same message for every peer in the room. Registering one twice is therefore reported — the last schema wins, and any peer still holding the earlier one decodes the payload as garbage. Keys under
~sdk/are reserved for SDK-internal messages and are not registered.Returns
Typed room instance for your registered messages