Skip to content
pubscout

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
$ flutter pub add pusher_client_socket
Source repository

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.

Works with

Packages commonly used together with pusher_client_socket: ones it builds on, ones built on it, and its own family.