Skip to main content

All Questions

Tagged with
31 votes
2 answers
17k views

Why do we need products like Pusher and Socket.io to establish a websocket connection?

I've been reading about websockets and SaaS like Pusher and Socket.io recently, while working on my Laravel chat practice application. What I don't understand is, why do we need external software to ...
Simon Suh's user avatar
  • 10.8k
16 votes
2 answers
4k views

Using laravel websockets package in docker environment

Use case n° 1: steps installing the package in the same container of the laravel project configuring the pusher settings in .env & boradcasting.php like so PUSHER_APP_ID=123456789 ...
joe_inz's user avatar
  • 1,146
12 votes
3 answers
8k views

Laravel Pusher Websocket Not Working on HTTPS

I'm using Laravel 5.8, and we're using a web socket with PUSHER in our application. It's broadcast perfectly locally or when I am on HTTP mode. When I update my set up to HTTPS, Broadcasting is no ...
code-8's user avatar
  • 57.5k
11 votes
6 answers
16k views

Laravel beyondcode websockets do not connect

I'm using this Laravel websockets package to have my own websocket server. As mentioned in package documentation, I have this configuration: .env setting: PUSHER_APP_ID=761772 PUSHER_APP_KEY=qwerty ...
Kiyarash's user avatar
  • 2,518
11 votes
4 answers
11k views

How to send message back from client to the server via WebSocket in Laravel with Laravel WebSockets?

WebSocket allows two-way communication: the server can send messages to the browser and the browser - the client - can respond back via the same connection. I am implementing Chat Application in ...
O Connor's user avatar
  • 4,384
9 votes
7 answers
31k views

Beyondcode Laravel Websockets : failed: WebSocket is closed before the connection is established

Local websockets is running like a charm but on production I keep getting the error in the title. Some background information I'm using the websocket package: beyondcode/laravel-websockets. I'm ...
Jesse Dijkstra's user avatar
8 votes
5 answers
17k views

Laravel websocket cant connect to pusher ERR_CERT_AUTHORITY_INVALID

I have a laravel application with websockets. I already setup all the needs for the websocket and pusher config. But whenever I test my broadcast channel I got app.js:58283 WebSocket connection to '...
draw134's user avatar
  • 1,157
8 votes
1 answer
1k views

Laravel Events Dynamic Channel Name

I am creating a real-time notifications feature within my app that will use Pusher to automatically notify the user when they get a notification (which is created by certain actions taken by users ...
Matt Pierce's user avatar
7 votes
2 answers
9k views

How to connect to Laravel Websocket with React?

I'm building an ordering app, where I do the backend with Laravel and the front end with both ReactJS and React Native I want real-time updates whenever a customer posts an order and whenever an order ...
Salman's user avatar
  • 1,005
7 votes
1 answer
1k views

How to guard private channels when using socket.io and Laravel Echo?

Here is my server.js file: var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); var Redis = require('ioredis'); var redis = new Redis(); http....
Jackson J's user avatar
  • 1,503
6 votes
2 answers
8k views

Is there any Alternative of SignalR ASP.NET in php (specifically Laravel)

I am working on an api based on laravel version 5.3. It's going to be like Telegram api that can respond to various clients that written with android, iOS or web version(angularjs). One thing that ...
Ahmad Badpey's user avatar
  • 6,542
6 votes
1 answer
2k views

creating a real time application in laravel without nodejs

I am using a shared hosting in which i can't use node js. But I want to create a real time application using laravel as per there https://laravel.com/docs/5.3/broadcasting doc they provide drivers ...
codenut's user avatar
  • 681
6 votes
1 answer
2k views

Illuminate \ Broadcasting \ BroadcastException No message

I'm using Laravel websocket written by beyoundcode. After couple of days, I've connected to myDomain.com/laravel-websockets and first step solved. But now, when I trigger an event, laravel has error ...
Kiyarash's user avatar
  • 2,518
6 votes
3 answers
2k views

Laravel beyondcode websockets - doesn't work if verify_peer is true

I'm using the package beyondcode/laravel-websockets. My problem here is when I set the 'verify_peer' => true the websocket is not working, but when the value is false it is working. Is there anyone ...
aceraven777's user avatar
  • 4,566
5 votes
3 answers
7k views

Laravel Pusher array_merge: Expected parameter 2 to be an array, null given

i'm following a tutorial from pusher to display notification on the website. Everything has been in line with the tutorial, however this particular error showed up when i try to access the ...
ckaryuusai's user avatar

15 30 50 per page
1
2 3 4 5
33