Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

razorext2's avatar

cURL error 56: Recv failure: Connection was reset when dispatch an event

several days ago, i was playing with reverb and it work fine, idk why today my broadcast message has stop working.

im on local development and i think i dont have any issue with my configuration, since i've try to reinstall again and again, test it on another pc, and it still suck.

what i have do is just use livewire table to one of my pages, and i think its not the problem.

here's my configuration: .env

REVERB_HOST="localhost"
REVERB_PORT=8081
REVERB_SCHEME=http

VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"

echo.js

import Echo from 'laravel-echo';

import Pusher from 'pusher-js';
window.Pusher = Pusher;

window.Echo = new Echo({
    broadcaster: 'reverb',
    key: import.meta.env.VITE_REVERB_APP_KEY,
    wsHost: import.meta.env.VITE_REVERB_HOST,
    wsPort: import.meta.env.VITE_REVERB_PORT,
    wssPort: import.meta.env.VITE_REVERB_PORT,
    forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
    enabledTransports: ['ws', 'wss'],
});

channel.js

when i debug the ws/wss result, it communicate each other saying ping and pong like it should be working right? idk whats wrong ps: php artisan reverb:start --port=8081 --debug say it communicate each other too..

0 likes
1 reply
hmawla's avatar

I had the same issue, and my problem was that the broadcast payload was too big, which caused it to crash. Ensure that you check if you are broadcasting a large amount of data and chunk it accordingly if necessary.

Please or to participate in this conversation.