The channel this message was sent on Typically this is the postId, but you can create your own channels
The payload of the message Can be any serializable data
The user who sent the message
const message: BroadcastMessage = {
from: userInfo,
channel: "t3_abc123",
data: { type: "MOVE", playerId: "t2_xyz789", position: { x: 100, y: 200 } }
};
Represents a message broadcast through the realtime system.
BroadcastMessages are sent via channels (usually the postId) to all subscribed players.