Skip to content
pubscout

laravel_echo_null

0.3.0, released 9 months ago by an unverified publisher

Laravel Echo implementation for Flutter supporting Socket.io and Pusher

WASM-ready
$ flutter pub add laravel_echo_null
Source repository

What it does

Provides Laravel Echo broadcasting capabilities in Flutter. Supports public, private, encrypted private, and presence channels using Socket.io or Pusher connectors.

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

Use it when

  • Your Flutter app needs to connect to a Laravel backend broadcasting system
  • You want to listen to WebSockets via Socket.io or Pusher in Flutter

Skip it when

  • You do not use a Laravel backend or broadcasting server
  • You only need standard REST or GraphQL API calls without broadcasting channels

Strengths

  • Supports multiple channel types including public, private, and presence channels
  • Supports both Socket.io and Pusher connectors

Weaknesses

  • Requires specific companion npm packages and configuration on the server side
  • Limited to Laravel broadcasting features

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
4

Requires adding pubspec dependencies for socket_io_client and pusher_client_socket, and optionally installing the fixed-laravel-echo-server via npm on the server side.

Echo<IO.Socket, SocketIoChannel> echo = Echo.socket(
  'http://localhost:6001',
  nameSpace: 'nameSpace',
  autoConnect: false,
);

Channel publicChannel = echo.channel('my-channel');
publicChannel.listen('MyEvent', (data) {
  print(data);
});

Alternatives

Packages that do the same job and could replace laravel_echo_null.

Works with

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