Handlers are the core mechanism for processing WebSocket requests in WSX. They define how your server responds to different types of client interactions.
interface WSXResponse { id: string; // Must match request.id target: string; // CSS selector for target element html: string; // HTML content to swap swap?: string; // How to swap content oob?: WSXOOBUpdate[]; // Out-of-band updates}