Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
Empujador de Laravel WebSockets en AWS

Creo una aplicación de socket y funciona bien localmente, pero cuando quiero probar si funcionará en AWS, aparece este error.

Illuminate\Broadcasting\BroadcastException Pusher error: {"error":"Se proporcionó un ID de aplicación desconocido 12345 ".}.

No sé si la configuración será diferente en AWS o es un problema de caché

esta es mi sentada

brodcasting.php

 'connections' => [ 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_APP_KEY'), 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), //'useTLS' => true, //'forceTLS'=>true, 'encrypted' => true, 'host' => '127.0.0.1', 'port'=>'6001', 'scheme'=> 'http', //'curl_options' => [ // CURLOPT_SSL_VERIFYHOST => 0, // CURLOPT_SSL_VERIFYPEER => 0, // ] ], ],

websoket.php

 'apps' => [ [ 'id' => env('PUSHER_APP_ID'), 'name' => env('APP_NAME'), 'key' => env('PUSHER_APP_KEY'), 'secret' => env('PUSHER_APP_SECRET'), //'path' => env('PUSHER_APP_PATH'), //'capacity' => null, 'enable_client_messages' => false, 'enable_statistics' => true, ], ],

bootstrap.php

 window.Echo = new Echo({ broadcaster: 'pusher', key: env('PUSHER_APP_KEY'), //cluster: process.env.MIX_PUSHER_APP_CLUSTER, //forceTLS: true, wsHost: window.location.hostname, wsPort: 6001, forceTLS: false, disableStats: true, });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Esto significa que es posible que deba cambiar el 'host' en su broadcasting.php para que apunte a cualquier IP/dominio en el que se esté ejecutando su laravel-websockets

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!