Adonis WebSocket Client (v1.0.2) is a frontend library for communicating with AdonisJs WebSocket servers. It provides a simple API for connecting to channels, emitting messages, and joining/leaving rooms. The package supports both CommonJS and CDN usage, and includes a Vue.js plugin. It is designed to be lightweight and easy to use, with no additional dependencies. However, the package is outdated and relies on the older AdonisJs v4 WebSocket server; it may not be compatible with newer versions. Development is sporadic, and the library has known security issues (no recent updates).
npm install adonis-websocket-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: import the client, connect to server, join channel, listen/emit events, and manage rooms.
Consider migrating to a more modern WebSocket client library like Socket.IO or native WebSocket.
Ensure your backend uses AdonisJs v4 or earlier; newer versions use different protocols.
Call ws(url) directly without the 'new' keyword.
Use 'import wsPlugin from 'adonis-websocket-client/plugin'; Vue.use(wsPlugin, url, options);'
Remove the 'new' keyword: const io = ws('http://localhost:3333');Ensure you have run 'npm install adonis-websocket-client' and import it, or include the CDN script tag.
Verify the package version and use: import wsPlugin from 'adonis-websocket-client/dist/plugin' if needed.
Start your AdonisJs server or check the URL.
No dependency data recorded yet.