gulp-websocket-server is a Gulp plugin that opens a WebSocket server (using the `ws` library) and sends messages to connected clients when file changes are detected via Gulp streams. Version 1.1.2 (latest) is stable but has not seen updates since 2017; it is in maintenance mode. Key differentiator: built-in integration with Gulp's pipe system via a `livereload` method, plus a standalone `send` method. Alternatives include browser-sync or gulp-livereload for more feature-rich live reloading.
npm install gulp-websocket-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a WebSocket server in Gulp and send a 'reload' message on file changes using wss.livereload().
Migrate to browser-sync or gulp-livereload.
Always provide a string argument to livereload(), e.g., .pipe(wss.livereload('reload')).Set both server config { path: '/ws' } and client URL to 'ws://localhost:4000/ws'.Replace 'new gulpWss(...)' with just 'gulpWss(...)'.
Use .pipe(wss.livereload('reload')) with parentheses and a message argument.Run 'npm install ws' to install the WebSocket library.