-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Echo Connected With Reverb Successfully In Local Valet Environment But Not Receving Events In The Frontend #154
Comments
Are you using the secure WebSockets (e.g |
Yes I am using wss. Connection is successfully established. Received pusher ping pong event also. But not receiving the broadcast events |
Hey @ritwikBiswas007 do you have your queue running? |
Yes I am running queue:work |
It is running properly |
Hi! I think this is same what I’m been struggled hours last few days! Here is some more details how this can be reproduced:
|
I am not getting any error |
an not receving any events also 😂 |
When I added BROADCAST_CONNECTION=reverb I am getting this error in failed jobs
|
It looks like there is an issue with Curl negotiating the SSL handshake with your custom certificate. |
I fixed by adding 'verify' => false, to client_options in broadcasting.php file |
Reverb Version
@beta
Laravel Version
^11.0
PHP Version
8.2.1
Description
ENV File
`
APP_NAME="Zepay Retail"
APP_ENV=local
APP_KEY=base64:epjDRbsy3TMxBhFYBoNgzR+FgHKrKgJzF359h3RUq3g=
APP_DEBUG=true
APP_URL=https://retail_zepay.test
ASSET_URL=https://retail_zepay.test
SPLADE_SSR_ENABLED=true
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_PORT=3306
DB_DATABASE=retail_zepay
DB_USERNAME=ritwik
DB_PASSWORD=
BROADCAST_DRIVER=reverb
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
SESSION_DRIVER=file
SESSION_LIFETIME=120
BROADCAST_CONNECTION=reverb
FILESYSTEM_DISK=local
MEMCACHED_HOST=memcached
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=1d2039c73f1352
MAIL_PASSWORD=d94966202d6d4c
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=8080
PUSHER_SCHEME=http
PUSHER_APP_CLUSTER=mt1
VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
REVERB_APP_ID=365696
REVERB_APP_KEY=pmqwvmumzdefdifc7yki
REVERB_APP_SECRET=nhvtrzvta3a2v3htyy4s
REVERB_HOST=retail_zepay.test
REVERB_PORT=3030
REVERB_SERVER_PORT=3030
REVERB_SCHEME=http
REVERB_SSL_LOCAL_CERT="/Users/ritwikbiswas/.config/valet/Certificates/retail_zepay.test.crt"
REVERB_SSL_LOCAL_PK="/Users/ritwikbiswas/.config/valet/Certificates/retail_zepay.test.key"
REVERB_SSL_CA="/Users/ritwikbiswas/.config/valet/Certificates/retail_zepay.test.csr"
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
MPLAN_API_KEY=62dd4fc6872957028d7248ccc8c05bdf
ENABLE_2FA_QR=true
User Notification Event
`
id === (int) $id; // }); Broadcast::channel('user-notification.{userId}', function ($user, $userId) { return true; }); ` Broadcast Service Provider ` { console.log(e); }); ` reverb config ` env('REVERB_SERVER', 'reverb'), /* |-------------------------------------------------------------------------- | Reverb Servers |-------------------------------------------------------------------------- | | Here you may define details for each of the supported Reverb servers. | Each server has its own configuration options that are defined in | the array below. You should ensure all the options are present. | */ 'servers' => [ 'reverb' => [ 'host' => env('REVERB_SERVER_HOST', '0.0.0.0'), 'port' => env('REVERB_SERVER_PORT', 8080), 'hostname' => env('REVERB_HOST'), 'options' => [ 'tls' => [ 'local_cert' => env('REVERB_SSL_LOCAL_CERT', null), 'local_pk' => env('REVERB_SSL_LOCAL_PK', null), 'verify_peer' => false ], ], 'max_request_size' => env('REVERB_MAX_REQUEST_SIZE', 10_000), 'scaling' => [ 'enabled' => env('REVERB_SCALING_ENABLED', false), 'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'), ], 'pulse_ingest_interval' => env('REVERB_PULSE_INGEST_INTERVAL', 15), ], ], /* |-------------------------------------------------------------------------- | Reverb Applications |-------------------------------------------------------------------------- | | Here you may define how Reverb applications are managed. If you choose | to use the "config" provider, you may define an array of apps which | your server will support, including their connection credentials. | */ 'apps' => [ 'provider' => 'config', 'apps' => [ [ 'key' => env('REVERB_APP_KEY'), 'secret' => env('REVERB_APP_SECRET'), 'app_id' => env('REVERB_APP_ID'), 'options' => [ 'host' => env('REVERB_HOST'), 'port' => env('REVERB_PORT', 443), 'scheme' => env('REVERB_SCHEME', 'https'), 'useTLS' => env('REVERB_SCHEME', 'https') === 'https', 'tls' => [ 'local_cert' => '/Users/ritwikBiswas/.config/valet/Certificates/retail_zepay.test.crt', 'local_pk' => '/Users/ritwikBiswas/.config/valet/Certificates/retail_zepay.test.key', 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, 'cafile' => '/Users/ritwikBiswas/.config/valet/Certificates/retail_zepay.test.csr', ], ], 'allowed_origins' => ['*'], 'ping_interval' => env('REVERB_APP_PING_INTERVAL', 60), 'max_message_size' => env('REVERB_APP_MAX_MESSAGE_SIZE', 10_000), ], ], ], ]; ` Broadcasting config ` env('BROADCAST_CONNECTION', 'null'), /* |-------------------------------------------------------------------------- | Broadcast Connections |-------------------------------------------------------------------------- | | Here you may define all of the broadcast connections that will be used | to broadcast events to other systems or over WebSockets. Samples of | each available type of connection are provided inside this array. | */ 'connections' => [ 'reverb' => [ 'driver' => 'reverb', 'key' => env('REVERB_APP_KEY'), 'secret' => env('REVERB_APP_SECRET'), 'app_id' => env('REVERB_APP_ID'), 'options' => [ 'host' => env('REVERB_HOST'), 'port' => env('REVERB_PORT', 443), 'scheme' => env('REVERB_SCHEME', 'https'), 'useTLS' => env('REVERB_SCHEME', 'https') === 'https', ], 'client_options' => [ // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html ], ], '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'), 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', 'port' => env('PUSHER_PORT', 443), 'scheme' => env('PUSHER_SCHEME', 'https'), 'encrypted' => true, 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', ], 'client_options' => [ // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html ], ], 'ably' => [ 'driver' => 'ably', 'key' => env('ABLY_KEY'), ], 'log' => [ 'driver' => 'log', ], 'null' => [ 'driver' => 'null', ], ], ]; ` ### Steps To Reproduce Use Above Config & setup laravel with reverb & echo, You will find the issueThe text was updated successfully, but these errors were encountered: