Category : pusher

The problem For a Lumen 8 project we are trying to implement Pusher. We got it working locally in a Docker environment, but when we turn to Kubernetes it isn’t working anymore. We get this error: [2021-05-27 17:56:36] production.ERROR: Pusher error: 404 NOT FOUND {"exception":"[object] (IlluminateBroadcastingBroadcastException(code: 0): Pusher error: 404 NOT FOUND at /var/www/html/vendor/illuminate/broadcasting/Broadcasters/PusherBroadcaster.php:122) Which ..

Read more

I want to use broadcast to understand when does the job finish and use pusher,laravel-echo and redis. When I run "php artisan queue:listen redis" dd in broadcast works but nothing happens in livewire component. showMessage method not working. Broadcast public function broadcastOn() { return new Channel(‘product-channel’); } Livewire component class ProjectActions extends Component { protected ..

Read more

I want to use broadcast to understand when does the job finish and use pusher,laravel-echo and redis. When I run "php artisan queue:listen redis" dd in broadcast works but nothing happens in livewire component. showMessage method not working. Livewire component class ProjectActions extends Component { protected $listeners = [‘echo:product-channel,ProductStatusUpdated’ => ‘showMessage’]; public function showMessage(){ dd("here"); ..

Read more

config/pusher.php $config[‘pusher_app_id’] = ‘1196786’; $config[‘pusher_app_key’] = ‘cfa7c8227e938e3a540b’; $config[‘pusher_app_secret’] = ‘8fe2eb6f0692942d5a1b’; $config[‘pusher_debug’] = FALSE; third_party/pusher/Pusher.php public function trigger($channels, $event, $data, $socket_id = null, $debug = false, $already_encoded = false) { if (is_string($channels) === true) { $this->log(‘->trigger received string channel "’.$channels.’". Converting to array.’); $channels = array($channels); } $this->validate_channels($channels); $this->validate_socket_id($socket_id); $query_params = array(); $s_url = $this->settings[‘base_path’].’/events’; $data_encoded ..

Read more

I’m using pusher to send notification from 1 page to another. On one side I stores value in a database and using pusher I send those same data on another page. Bellow is the code: function storeInDB($msg){ $options = array( ‘cluster’ => ‘ap2’, ‘useTLS’ => true ); $pusher = new PusherPusher( ’70e614363fa2685a4c21′, ’88ec053e4d2b0237a366′, ‘1197526’, $options ..

Read more

CentOS7. im using pusher Laravel web sockets. When I reach 400 – 500 users, php gives an error as follows. Centos7 + Litespeed + Plesk Command; /opt/plesk/php/7.4/bin/php /var/www/vhosts/domain.com/artisan websockets:serve –port=6002 *** buffer overflow detected ***: /opt/plesk/php/7.4/bin/php terminated ======= Backtrace: ========= /lib64/libc.so.6(__fortify_fail+0x37)[0x7fe161028697] /lib64/libc.so.6(+0x116812)[0x7fe161026812] /lib64/libc.so.6(+0x1185f7)[0x7fe1610285f7] /opt/plesk/php/7.4/bin/php[0x60daad] /opt/plesk/php/7.4/bin/php[0x610012] /opt/plesk/php/7.4/bin/php(execute_ex+0x1c5)[0x6fa3f5] /opt/plesk/php/7.4/lib64/php/modules/ioncube_loader_lin_7.4.so(+0x7844e)[0x7fe1596e744e] /opt/plesk/php/7.4/bin/php(execute_ex+0x65b8)[0x7007e8] /opt/plesk/php/7.4/lib64/php/modules/ioncube_loader_lin_7.4.so(+0x7844e)[0x7fe1596e744e] /opt/plesk/php/7.4/bin/php(execute_ex+0x84ce)[0x7026fe] /opt/plesk/php/7.4/lib64/php/modules/ioncube_loader_lin_7.4.so(+0x7844e)[0x7fe1596e744e] /opt/plesk/php/7.4/bin/php(execute_ex+0x84ce)[0x7026fe] /opt/plesk/php/7.4/lib64/php/modules/ioncube_loader_lin_7.4.so(+0x7844e)[0x7fe1596e744e] /opt/plesk/php/7.4/bin/php(execute_ex+0x84ce)[0x7026fe] /opt/plesk/php/7.4/lib64/php/modules/ioncube_loader_lin_7.4.so(+0x7844e)[0x7fe1596e744e] ..

Read more