Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details →
Socket
Book a DemoInstallSign in
Socket

partykit-nuxt

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partykit-nuxt

Use PartyKit 🎉 with Nuxt 💚

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
0
Created
Source

🎉 partykit-nuxt

npm version npm downloads License 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
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

FAQs

Package last updated on 20 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts