🎉 partykit-nuxt

Use PartyKit 🎉 with Nuxt 💚
Vue port of PartySocket (PartyKit's Client API), powered by VueUse's useWebSocket.
Features
- ↔️  usePartySocket() - Vue PartySocket composable
Roadmap
- Automatically start PartyKit server with Nuxt
Quick Setup
Install the module to your Nuxt application with one command:
npx nuxi module add partykit-nuxt
That's it! You can now use partykit-nuxt in your Nuxt app ✨
Documentation
usePartySocket()
const { close, data, id, open, send, status, ws } = usePartySocket<string>({
host: 'localhost:1999',
room: 'room',
immediate: false,
autoReconnect: true,
query: {
token: accessToken,
},
})
Contribution
Local development
npm install
npm run dev:prepare
npm run dev
npm run dev:build
npm run lint
npm run test
npm run test:watch
npm run release