Agent skill
nuxt-realtime
Real-time features with Laravel Echo and WebSockets. Use when subscribing to channels, listening for events, implementing live updates, or managing channel subscriptions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/nuxt-realtime-leeovery-claude-nuxt-c539d72b
SKILL.md
Nuxt Real-time
WebSocket real-time updates via Laravel Echo.
Core Concepts
realtime.md - Complete real-time patterns
Configuration
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['nuxt-laravel-echo'],
runtimeConfig: {
public: {
echo: {
key: undefined, // NUXT_PUBLIC_ECHO_KEY
host: undefined, // NUXT_PUBLIC_ECHO_HOST
scheme: undefined, // NUXT_PUBLIC_ECHO_SCHEME
port: undefined, // NUXT_PUBLIC_ECHO_PORT
},
},
},
})
Channel Subscriptions
const { privateChannel, presenceChannel, leaveChannel } = useRealtime()
// Subscribe to channel
const channel = privateChannel('posts.{id}', postId)
// Listen for events
channel.on('PostUpdated', (event) => {
refresh()
})
// Multiple events
channel.on(['PostCreated', 'PostUpdated', 'PostDeleted'], refresh)
// Cleanup
onUnmounted(() => {
leaveChannel('posts.{id}', postId)
})
Constants
// app/constants/channels.ts
export const Posts = 'posts'
export const Post = 'post.{post}'
// app/constants/events.ts
export const PostCreated = 'PostCreated'
export const PostUpdated = 'PostUpdated'
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?