Larasopp Client is a WebSocket client for Laravel broadcasting with full TypeScript support. Version 1.2.27 provides type safety for channels, events, and users via generics. It supports public, private, and presence channels with automatic reconnection. Compared to other Laravel WebSocket clients (e.g., Echo), Larasopp offers per-key JSON revivers, typed event caching, and a permission system. The package is actively maintained with regular updates.
npm install larasoppNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a typed Larasopp client, connect, subscribe to a channel, and listen to a typed event.
Use typeof or import() to extract types, or define your own interfaces.
Check if you want caching behavior before enabling withCache=true.
Use default import only.
Always provide explicit permission level (e.g., 'public') and waitSubscribe boolean.
Stay updated with changelog.
Call larasopp.connect() before subscribing.
Use 'import Larasopp from 'larasopp''.
Ensure type argument matches your event structure: new Larasopp<ChannelsEvents>(...)
Verify server is running and host URL is correct.
No dependency data recorded yet.