Structure for WebSocket messages exchanged with FoundryVTT
Defines the format for real-time communication messages between the MCP server and FoundryVTT.
FoundryWebSocketMessage
const message: FoundryWebSocketMessage = { type: 'combatUpdate', data: { round: 3, turn: 2 }, user: 'user-123', timestamp: '2024-01-15T10:30:00Z'}; Copy
const message: FoundryWebSocketMessage = { type: 'combatUpdate', data: { round: 3, turn: 2 }, user: 'user-123', timestamp: '2024-01-15T10:30:00Z'};
Optional
Structure for WebSocket messages exchanged with FoundryVTT
Defines the format for real-time communication messages between the MCP server and FoundryVTT.
FoundryWebSocketMessage
Example