Skip to content

RihanArfan/partykit-nuxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ‰ 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

About

Use PartyKit ๐ŸŽ‰ with Nuxt ๐Ÿ’š

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy