{"library":"nextjs-websocket","type":"library","category":null,"description":"A React component for WebSocket communication designed to work seamlessly with Next.js, including server-side rendering. Version 1.0.11 is the latest stable release; the package has not been updated since 2022. It forks react-websocket and adds Next.js compatibility, with support for automatic reconnection, debug logging, and hooks-like callbacks. Package maintainer recommends it for simple live data feeds such as real-time counters or chat, but it lacks modern features like hooks or TypeScript definitions.","language":"javascript","status":"maintenance","version":"1.0.11","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install nextjs-websocket","imports":["import { Websocket } from 'nextjs-websocket'","const { Websocket } = require('nextjs-websocket')","import { useWebSocket } from 'nextjs-websocket'"]},{"cmd":"yarn add nextjs-websocket","imports":[]},{"cmd":"pnpm add nextjs-websocket","imports":[]}],"homepage":"https://github.com/alamorre/nextjs-websocket#readme","github":"https://github.com/alamorre/nextjs-websocket","docs":null,"changelog":null,"pypi":null,"npm":"nextjs-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}