Implement the Layercode Webhook SSE API in your Hono backend.
GOOGLE_GENERATIVE_AI_API_KEY
- Your Google AI API keyLAYERCODE_WEBHOOK_SECRET
- Your Layercode pipeline’s webhook secret, found in the Layercode dashboard (go to your pipeline, click Edit in the Your Backend Box and copy the webhook secret shown)client_session_key
(and optionally a session_id
) to the frontend. This key is required for the frontend to establish a secure WebSocket connection to Layercode.