Questions tagged [laravel-websockets]

190 questions
0
votes
0 answers

How can I show a message from a websocket-connection which is build with laravel-websockets in the back and laravel_flutter_pusher in the front?

Hey lovely flutter developers, I have successfully created a connection from my flutter app to my laravel-websocket server and I can display triggered events from laravels tinker console in the flutter console, but can't figure out how to display…
m1ge0
  • 3
  • 1
0
votes
0 answers

How can I access the reading information of the message with FastApi websocket?

I made a live chat application with Fastapi websocket, but I want to learn the message read status and add it to the interface. How can I get whether the message has been read or not. class ConnectionManager: def __init__(self): …
0
votes
0 answers

Laravel Pusher throwing html response in console with title "Not Found" when an even is fired using tinker

This is the error that I am getting on console while firing an event using tinker. I am able to connect to XXXs.XXX.com:8443/laravel-websockets, where I can see the default channel and socketId is being created. The socket has been deployed on…
Pratik Lalan
  • 93
  • 1
  • 1
  • 6
0
votes
0 answers

Laravel broadcast private channel not working laravel-websockets server getting this error thrown: `Undefined property: stdClass::$auth`

I have a laravel backend and react front end app. and i need to show event notification to react front end. its working perfectly when using channel but when i use privateChannel and try to login, laravel-websockets debug dashboard shows the event…
0
votes
0 answers

Failure when using wss:// connection with laravel-websocket package behind nginx proxy

I am using dockerized environment for laravel project. Everything is glued by nginx proxy. There is additional docker container to run laravel-websockets server. It works when I try to connect to it using postman. It connects, I cand send message to…
0
votes
1 answer

Origin going as HTTP in laravel websockets

I am using Laravel websockets but Origin is going http instead of https. Here are my files Broadcasting.php 'connections' => [ 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_APP_KEY'), 'secret' =>…
Sukhwinder Sodhi
  • 455
  • 1
  • 4
  • 18
0
votes
0 answers

Laravel websocket on subdomain. WebSocket is closed before the connection is established

I am trying to setup laravel websocket on aws hosting (ubuntu based) with SSL When I go to page laravel-websockets and press connect it waits few seconds and then show me warning in console: WebSocket connection to…
0
votes
1 answer

Laravel version 8.9.0 Websockets: Getting Argument 4 passed to Pusher\Pusher::trigger() must be of the type array, null given

I get this error, when sending a message from the Laravel Websockets dashboard. Laravel version is 8.9.0 this is how my composer.json file looks: `{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", …
0
votes
0 answers

Auth:api middleware not working for Laravel broadcasting routes

Hi I am using laravel passport to protect my api routes. I am using Beyondcode's laravel websockets package for my socket server. My goal is to access my broadcasting routes for broadcasting only on a token bases. Here is my…
0
votes
2 answers

"Argument 4 passed to Pusher\Pusher::trigger() must be of the type array, null given" when dispatching a default ShouldBroadcast Event

I am trying to follow along with this tutorial: https://www.youtube.com/watch?v=AUlbN_xsdXg which is very straight forward and simple, but unfortunately does not work for me. Based on the comments others do not seem to be having this issue. This is…
Bryan
  • 623
  • 1
  • 6
  • 23
0
votes
0 answers

laravel-websocket is not working on production

I already created many projects with same settings. But for this project, for some reason i cant connect to ws on production. Connection to WS is always on pending... Here is all my settings: broadcasting.php
0
votes
1 answer

Laravel Websocket event subscribing but not firing message

I have configured laravel websockets into my project. I can run websockets successfully event are getting subscribed when I am trying to send message its not going through. I tried even tinker event (new \App\Events\NewTrade('Hi there')) I can't see…
asimdev
  • 705
  • 1
  • 8
  • 22
0
votes
0 answers

Laravel Websocket package issue with the latest Laravel, pusher, and Echo package

I am working on Laravel 9 where I install Laravel WebSocket, Laravel Echo, and Pusher PHP server. By the way, I didn't use the official Pusher application, just using the package as per Laravel-WebSocket package documentation suggested. User case -…
Sachin Kumar
  • 3,001
  • 1
  • 22
  • 47
0
votes
0 answers

Laravel echo private channel not working on Nuxt js

I am using Laravel 9, Nuxt js, laravel-websocket. Laravel Echo is working only on public channels not working on private channels. Here is my code. channels.php Broadcast::channel('trades', function ($user) { return auth()->check(); }); Events…
0
votes
1 answer

Laravel echo listens multiple times

I have created a simple chat app wherein a user may send a message privately. Now, while the page is on first load (mounted), the console logs only one line. If I click on other links (not hard refresh) and go back to the page, the console logs…
smzapp
  • 809
  • 1
  • 12
  • 33