I am using Vue SPA and Laravel. I have google it for hours and tried many things but I can't find a way to make it work.
In index.html I have
This is my subscribe method:
subscribe() {
let…
I'm having trouble with Laravel Echo (I think). I've built a vue chat app that works locally.
I've even cloned it onto another machine and got it working fine. But when I get it onto production, it's not working.
I'm not running npm on the server,…
How to stop trying to create a connection when getting a server connection fail?
const echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
cluster: process.env.MIX_PUSHER_APP_CLUSTER,
wssHost:…
Getting a 401 (Unauthorised) response from Pusher due to failed authentication using Laravel Sanctum.
[Error] Pusher : : ["Error: Unable to retrieve auth string from channel-authorization endpoint - received status: 401 from…
After launching app from tapping on push notification, app is showing white blank screen when quit app with hardware back button. Logged react navigation stack but showing only 1 route in the stack.
I've tried to override the back function by using…
I have followed tutorials to configure laravel with websockets using docker, except that my php version is PHP 8.1.9, and laravel 8.
My nginx container is a reverse proxy to web_dev container, and does SSL termination. So further communication…
I'm building a real-time chat using Laravel, Ably (Pusher) and Vue 3 and a presence channel.
Everything works great, but for some reason the first connected client gets disconnected automatically after ~10 seconds (the leaving event occurs for that…
I am building a react native application with laravel api, and pusherjs websocket. But i am getting the 403 error on private channel.
I am quite familiar with the Pusher.js for web, and i know that when it throws this error, its an authentication…
i have imported laravel-echo and @pusher/pusher-websocket-react-native in react native but error occur:can not find variable pusher
please tell me solution will be thankfully
import Echo from "laravel-echo";
import {
Pusher,
PusherMember,
…
I am using vue 3 to build a realtime chat app. I am also using laravel-echo@^1.10.0 and pusher-js@^7.0.3.
In the main.js
I instantiated the laravel-echo and passed in the credential from the .env file
const app =…
So I was building chat functionality in laravel for a website using Pusher , everything was working fine till yesterday. But when I run the chat module again, I found out that trigger() method is giving error (Internal server error).
`
use…
I am using Node.js here with Pusher,
but it's not a pusher related question, it's more of a Node.js question.
In Server.js (declare pusher, and used pusher once for authentication)
import express from 'express';
import cors from 'cors';
import…
I am using redux toolkit to update my real time messages but in pusher bind function the redux state is not getting the updated data.
const messages = useSelector((state) => state.messages.chatMessages);
const chatId = useSelector((state) =>…