Comments (4)
I'm also having this problem. I had it with another attempt at a chat system with Laravel/pusher as well.
from chat-demo.
same issue for me - using laravel 7 and php server 7.4.4
from chat-demo.
Got it to work - in the enablePusher function I use
window.Echo.private(`mc-chat-conversation.${this.conversation}`)
.listen(".Musonza\\Chat\\Eventing\\MessageWasSent", (e) => {
console.log(e)
this.messages.data.push(e.message);
})
Or you could use broadcastAs() function on the events in the Eventing folder and name them as you like. Dont forget the dot.
Echo config in bootstrap.js
window.Echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
cluster: process.env.MIX_PUSHER_APP_CLUSTER,
wsHost: window.location.hostname,
wssHost: window.location.hostname,
wsPort: 6001,
wssPort: 6001,
encrypted: false,
enabledTransports: ['ws','wss'],
});
I`m using https://github.com/beyondcode/laravel-websockets
from chat-demo.
The same problem here:
followed the instructions of horaceho/chat-demo@0e99f41 and re-run the demo
Messages are succesfully send to pusher.com. However, new message only shows up after manual refresh page.
The fix of micos7 does not solve the problem, but causes this error: "VM401:1 POST http://127.0.0.1:8000/broadcasting/auth 403 (Forbidden)"
How to make the demo work?
from chat-demo.
Related Issues (12)
- No conversations are created HOT 1
- Clicked on New Conversation button gives 404 route error. HOT 2
- Demo currently in broken state HOT 22
- if it in broken state why u not remove the demo!! HOT 4
- Issue with pusher HOT 4
- Semantic Errors. when joining the chat HOT 4
- first user created does not see any conversations / can't create conversations HOT 2
- participanttransformer.php error where user id not found
- issue while installing composer HOT 1
- node install problem
- Can I install it on a shared hosting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-demo.