Skip to content
pubscout

pusher_reverb_flutter

0.0.10, released 4 months ago by shadatrahman.com

A Flutter Pusher client for Laravel Reverb with custom paths and dynamic headers.

WASM-ready
$ flutter pub add pusher_reverb_flutter
Source repository

What it does

Provides real-time WebSocket communication using the Pusher Protocol optimized for Laravel Reverb. It supports public, private, and end-to-end encrypted channels alongside automatic reconnection.

AI-written summary of version 0.0.10, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter application that connects to a Laravel Reverb backend.
  • You need real-time updates via public, private, or encrypted channels.
  • You want stream-based or callback-based event handling for WebSocket messages.

Skip it when

  • You are using WebSockets without a Pusher-compatible protocol or Laravel Reverb.
  • You require features tied to browser-specific WebSocket configurations that are unsupported on web.

Strengths

  • Supports all Flutter platforms including Web, Android, iOS, macOS, Windows, and Linux.
  • Includes built-in support for encrypted channels with AES-256-CBC.
  • Automatic reconnection handling with exponential backoff.

Weaknesses

  • API key connection headers and ping intervals are ignored on web due to browser limitations.
  • Early stage version (0.0.10) which may undergo API changes.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Requires a running Laravel backend with Reverb configured. Pass host, port, and appKey to initialize the client.

import 'package:pusher_reverb_flutter/pusher_reverb_flutter.dart';

final client = ReverbClient.instance(
  host: 'localhost',
  port: 8080,
  appKey: 'your-app-key',
);

await client.connect();

final channel = client.subscribeToChannel('notifications');
channel.on('new-message').listen((event) {
  print('Received: ${event.data}');
});

Alternatives

Packages that do the same job and could replace pusher_reverb_flutter.

Works with

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