pusher_client_socket
0.0.8, released 9 months ago by an unverified publisher
Connect to a Pusher server using WebSockets across all platforms.
WASM-ready
What it does
Allows Flutter applications to connect to Pusher-compatible WebSocket servers. It supports subscribing to public, private, private encrypted, and presence channels, binding event listeners, and automatic reconnection.
AI-written summary of version 0.0.8, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need real-time messaging or broadcasting using Pusher or compatible servers like Laravel Reverb.
- You require cross-platform support for public, private, or presence channels.
Skip it when
- You are using standard REST APIs without real-time socket requirements.
- You require a backend client rather than a Flutter frontend client.
Strengths
- Supports all platforms including Android, iOS, Web, macOS, Windows, and Linux.
- Handles automatic reconnection and activity checks out-of-the-box.
- Supports encrypted and presence channels with custom authentication headers.
Weaknesses
- Limited documentation outside of basic usage and options table.
- Early stage package version (0.0.8).
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Not documented
final options = PusherOptions(key: 'PUSHER-KEY', cluster: 'mt1');
final pusherClient = PusherClient(options);
pusherClient.connect();Alternatives
Packages that do the same job and could replace pusher_client_socket.
- web_socket_channel
If you want a standard, low-level WebSocket wrapper without Pusher-specific protocol overhead.
83Compare
Works with
Packages commonly used together with pusher_client_socket: ones it builds on, ones built on it, and its own family.
- pinenaclpusher_client_socket depends on itDart implementation of TweetNaCl cryptographic library with high-level APIs
- web_socket_clientpusher_client_socket depends on itA simple WebSocket client for Dart with automatic reconnection logic.
- laravel_echo_nullBuilt on pusher_client_socketLaravel Echo implementation for Flutter supporting Socket.io and Pusher