Setup with agent
Give your AI agent one prompt, your Vask credentials, and let it wire the right Pusher-compatible setup for your stack.
This guide is intentionally framework-agnostic. Your agent should inspect the codebase first, then choose the Pusher-compatible server and client setup that fits the app already in front of it.
Copy-paste prompt
Paste this into Claude, Codex, Cursor, Windsurf, or any agent that can edit your app directly.
# Integrate Vask into this app
Vask is a low-latency Pusher-compatible websocket platform powered by Cloudflare.
Implement or migrate to a complete Vask integration for this codebase using the stack and conventions already present in the project.
Goal:
- send server-side events through Vask
- subscribe from the client
- keep the implementation production-ready
- use existing framework patterns instead of inventing a parallel setup
Use these Vask values:
- app id: YOUR_VASK_APP_ID
- key: YOUR_VASK_APP_ID
- secret: YOUR_VASK_SECRET
- host: wss.vask.dev
- port: 443
- scheme: https / wss
- auth endpoint: YOUR_AUTH_ENDPOINT_IF_USING_PRIVATE_OR_PRESENCE_CHANNELS
Requirements:
- install the correct Pusher-compatible server and client libraries for this stack
- configure the server broadcaster/client with the Vask credentials
- add one end-to-end example event and one example channel subscription
- if the app uses private or presence channels, wire auth with the app's existing auth system
- map the credentials into whatever env vars or config files this stack already uses
- use env/config files for secrets, not hardcoded values
- explain which files changed and how to run the integration locally
- ensure you use the same app_key for app id and key, and ensure you send a valid origin header
Constraints:
- choose the framework-specific implementation details yourself
- do not assume Laravel or any specific framework unless this repo already uses it
- do not change unrelated architecture
- keep code minimal and idiomatic for this project
If you don't have the details you need, ask me.Replace these values first
- YOUR_VASK_APP_ID - your Vask app ID.
- YOUR_VASK_KEY - your public app key.
- YOUR_VASK_SECRET - your server secret.
- YOUR_VASK_HOST - your Vask host, usually the app host you were given.
- 443 and https - keep these unless Vask told you to use a different port or scheme.
- YOUR_AUTH_ENDPOINT_IF_USING_PRIVATE_OR_PRESENCE_CHANNELS - only needed for protected channels.
Need a manual guide?
If you want a concrete framework example instead, use the Laravel integration guide.
Prefer raw markdown? View this page as markdown.