pusher

Pusher client side /pusher/auth returning Error 500 (Internal Server Error)

坚强是说给别人听的谎言 提交于 2021-02-11 14:05:37
问题 I'm working on developing a quick chat application to develop my skills with pusher and decided to start getting into private channels. The public channel application I had on the same client-side code and slightly tweaked App\Events\chatmessagesent event (changed return new Channel(...) to return new PrivateChannel(...)) is returning a peculiar error. When I load up the chat page, even though I just tweaked the code to point to a private server, I now get a Error 500 when trying to post to

Laravel: dynamic configuration for Pusher

最后都变了- 提交于 2021-02-11 08:44:07
问题 I am trying to make the configuration for Pusher in my Laravel app (SaaS) dynamic. Basically I want to store different Pusher configs for different accounts. And call the corresponding config based on the user. I have tries to change the config in runtime using config()->set('services.pusher.xxx', 'yyyy') , but this doesn't work at any level of the framework, event in a custom ServiceProvider. I found Laravel's BroadcastManager and tried to override the createPusherDriver() so that I could

Laravel Echo not listening for pusher events

爷,独闯天下 提交于 2021-02-10 20:23:48
问题 Trying to create a kind of chat app with laravel and vuejs. Once the message is sent, I fire the event from laravel which reflects on the pusher debug console with the right event class but the listen callback from vuejs is not called at all. created () { window.Echo.channel('chat') .listen('MessageSent', (e) => { console.log(e); //not getting this this.sentMessages.push({ message: e.message.message, user: e.user }); }); }, Below is a screenshot of the debug console from pusher see the image

Laravel Echo not listening for pusher events

梦想与她 提交于 2021-02-10 20:21:52
问题 Trying to create a kind of chat app with laravel and vuejs. Once the message is sent, I fire the event from laravel which reflects on the pusher debug console with the right event class but the listen callback from vuejs is not called at all. created () { window.Echo.channel('chat') .listen('MessageSent', (e) => { console.log(e); //not getting this this.sentMessages.push({ message: e.message.message, user: e.user }); }); }, Below is a screenshot of the debug console from pusher see the image

Laravel5.8 Pusher not working. Cannot receive

蓝咒 提交于 2021-02-10 14:21:51
问题 I am creating realtime chat app. I have set up pusher in my laravel and vue.js project. But it doesn't work. Though I don't have any error in the console. Also, I have no error in network tab. I need to create messenger app, so I need a realtime chat function. Now, I can push user's comment but in the other user's window, nothing shows up. But it does, once I refresh the page. I think my pusher setting has something wrong, because in the pusher debug console, any session is not executed. Here

Receiving events in Pusher client

依然范特西╮ 提交于 2021-01-27 15:51:43
问题 I'm trying to connect to the BitStamp Websocket API with Python. However, I cannot find a decent tutorial or explanation of the process anywhere. What I need is to receive the live price ticker. I tried using this library but I'm not receiving any live price. I think I'm probably missing something because I'm new with WebSockets. Here is my code: import pusherclient import sys # Add a logging handler so we can see the raw communication data import logging root = logging.getLogger() root

http://localhost:8000/broadcasting/auth 404 (Not Found)

限于喜欢 提交于 2020-11-27 04:50:52
问题 I am trying to make my app app connect to pusher on a private channel. But I am getting the following error: pusher.js?b3eb:593 POST http://localhost:8000/broadcasting/auth 404 (Not Found) What maybe the cause of the error and how to resolve it. 回答1: Look in config/app.php if you have uncommented App\Providers\BroadcastServiceProvider::class, 回答2: There are two Service Providers with Same name but different namespace in config/app.php Illuminate\Broadcasting\BroadcastServiceProvider::class,

http://localhost:8000/broadcasting/auth 404 (Not Found)

和自甴很熟 提交于 2020-11-27 04:50:31
问题 I am trying to make my app app connect to pusher on a private channel. But I am getting the following error: pusher.js?b3eb:593 POST http://localhost:8000/broadcasting/auth 404 (Not Found) What maybe the cause of the error and how to resolve it. 回答1: Look in config/app.php if you have uncommented App\Providers\BroadcastServiceProvider::class, 回答2: There are two Service Providers with Same name but different namespace in config/app.php Illuminate\Broadcasting\BroadcastServiceProvider::class,

http://localhost:8000/broadcasting/auth 404 (Not Found)

余生颓废 提交于 2020-11-27 04:49:26
问题 I am trying to make my app app connect to pusher on a private channel. But I am getting the following error: pusher.js?b3eb:593 POST http://localhost:8000/broadcasting/auth 404 (Not Found) What maybe the cause of the error and how to resolve it. 回答1: Look in config/app.php if you have uncommented App\Providers\BroadcastServiceProvider::class, 回答2: There are two Service Providers with Same name but different namespace in config/app.php Illuminate\Broadcasting\BroadcastServiceProvider::class,