Pusher error: The data content of this event exceeds the allowed maximum (10240 bytes)

I’m working on a project where I want to live display users’ points whenever the gain or lose points. I have an api that sends event to the frontend: public function test(Request $request){ $message = $request->message; $users = User::all()->where(‘company_id’, $message); event(new MyEvent([$users])); } Whenever the api is called, I recieve the following error: Illuminate\Broadcasting\BroadcastException: Pusher… Read More Pusher error: The data content of this event exceeds the allowed maximum (10240 bytes)

Cannot use import statement outside a module with @pusher/push-notifications-web nodejs – beams

I am trying to follow this tutorial using nodejs and express: https://pusher.com/docs/beams/reference/web/#npm-yarn First I did: npm install @pusher/push-notifications-web before adding the code. But when I add this code in the index.js file: import * as PusherPushNotifications from “@pusher/push-notifications-web”; const beamsClient = new PusherPushNotifications.Client({ instanceId: “<YOUR_INSTANCE_ID_HERE>”, }); beamsClient.start().then(() => { // Build something beatiful 🌈 });… Read More Cannot use import statement outside a module with @pusher/push-notifications-web nodejs – beams