hi guys,
any one of you can help give me solution for pusher Invalid socket ID undefined
well, im just learning laravel and got installed laravel 12 with broadcasting for multichatroom like what course alex provide to learn
on episode 8 minutes 7.38 ive encounter an error
im using HERD and laravel 12 installation
Invalid socket ID undefined
for
private function validate_socket_id(string $socket_id): void
{
if ($socket_id !== null && !preg_match('/\A\d+\.\d+\z/', $socket_id)) {
throw new PusherException('Invalid socket ID ' . $socket_id);
}
laravel log
laravel.log
[2025-03-13 06:16:54] local.ERROR: Invalid socket ID undefined {"userId":1,"exception":"[object] (Pusher\\PusherException(code: 0): Invalid socket ID undefined at Z:\\Laravel\\multiroomchat\\vendor\\pusher\\pusher-php-server\\src\\Pusher.php:223)
no luck googling and chatgpt
already tried twice for install a new laravel project and following remade as https://codecourse.com/courses/build-a-multi-room-realtime-chat-with-livewire-and-reverb
still stuck on Invalid socket ID undefined
MessageCreated event code and channels.php as is in the video tutorial
now, i already tried for last to reinstall again with new laravel installation and it works,
i guess when im facing that problem of pusher Invalid socket ID undefined
at that time, im facing unstable internet connection especially when installing broadcast(reverb) im felling it not installed corectly when the internet connection not stable
run php artisan reverb:start --debug on CLI
Pruning Stale Connections .......................
Pinging Inactive Connections .................
Pruning Stale Connections .......................
Pinging Inactive Connections .................
not like the reverb as usual
1▕ {
2▕ "event": "pusher:ping",
3▕ "data": []
4▕ }
Message Handled ........................................................................
...................................... 907176430.306039505
Message Received .......................................................................
...................................... 758991428.528958620
btw, thanks for the attention about this, now its work as it used to like in course
thanks @alex