Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

238
Visualizações
Laravel WebSockets pusher in AWS

I create a socket app and it works fine locally but when I want to test if it will be working in AWS it gives me this error

Illuminate\Broadcasting\BroadcastException Pusher error: {"error":"Unknown app id 12345 provided."}.

I don't know does the setting will be different on AWS or it is a cache issue

this is my sitting

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 Respostas
Responde à pergunta

0

This means you might need to change the 'host' in your broadcasting.php to point to whatever IP/domain your laravel-websockets is running on

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda