Question Details

No question body available.

Tags

laravel flutter websocket flutter-dependencies laravel-12

Answers (1)

January 9, 2026 Score: 1 Rep: 1,138 Quality: Low Completeness: 80%

In your PusherOptions object you set wss Port to 443 but reverb is set to Port 8080. Try changing that in your object.

late final options = PusherOptions(
    key: 'reverb-KEY',
    host: 'HOST',
    // wsPort: null,
    wssPort: 8080, //Changed from Port 443 to Port 8080
    encrypted: true,
    autoConnect: false,
    authOptions: PusherAuthOptions(
      'https://URL----',
      headers: () async {
        return {
          'Authorization': 'Bearer ${TOKEN}',
          'Accept': 'application/json',
        };
      },
    ),
  );

Also make sure you intend to use wss and not ws

Reverb Docs with informations about the port settings where 8080 also seems to be standard option. https://laravel.com/docs/12.x/reverb

Since Herd and Valet domains resolve to localhost, running the command above will result in your Reverb server being accessible via the secure WebSocket protocol (wss) at wss://laravel.test:8080.