Skip to content

Instantly share code, notes, and snippets.

View JonathanConn's full-sized avatar
🏠
Working from home

PopsicleMan JonathanConn

🏠
Working from home
View GitHub Profile
@JonathanConn
JonathanConn / index.tsx
Created June 13, 2025 18:18
Channel Messaging Pseudo Code
// Parent Component (app/test/canvas/page.tsx)
// 1. Setup State and Refs
const iframeRef = useRef<HTMLIFrameElement>(null);
const [messagePort, setMessagePort] = useState<MessagePort | null>(null);
// 2. Message Sending Function
function sendMessageToChild() {
if (!messagePort) return;
messagePort.postMessage("Hello from parent");
@JonathanConn
JonathanConn / update-config.json
Last active March 3, 2024 05:58
flower-tauri
{}