Category : laravel-websockets

I’m trying to access with WSS. Set certificate & private key file path in .env file. but getting below error UnexpectedValueException {#1506 #message: "Unable to complete TLS handshake: Unable to set private key file `/var/www/html/storage/ssl/private.key’" #code: 0 #file: "./vendor/react/socket/src/StreamEncryption.php" #line: 133 trace: { ./vendor/react/socket/src/StreamEncryption.php:133 { …} ./vendor/react/socket/src/StreamEncryption.php:76 { …} ./vendor/react/event-loop/src/StreamSelectLoop.php:245 { …} ./vendor/react/event-loop/src/StreamSelectLoop.php:212 { …} ..

Read more

I have tried the following ways: Created new Binance API Key Created a new Listen Key by using https://api.binance.com/api/v3/userDataStream Tried to connect Binance User Data Stream https://binance-docs.github.io/apidocs/spot/en/#payload-account-update So, I want to get the result from Binance. Not connect wss with socket connection Sourc..

Read more

Laravel Websocket is working with non ssl & HTTP. but when I applied SSL changes it’s not working. resources/js/bootstrap.js import Echo from ‘laravel-echo’; window.Pusher = require(‘pusher-js’); window.Echo = new Echo({ broadcaster: ‘pusher’, key: process.env.MIX_PUSHER_APP_KEY, encrypted: false, wsHost: window.location.hostname, wsPort: process.env.MIX_LARAVEL_WEBSOCKETS_PORT, wssPort: process.env.MIX_LARAVEL_WEBSOCKETS_PORT, enabledTransports: [‘ws’, ‘wss’], forseTLS:true, }); config/broadcast.php ‘pusher’ => [ ‘driver’ => ‘pusher’, ‘key’ ..

Read more

I’m currently trying to create a websocket client to connect to a wss:// URL with PHP (without using javascript) and been a few days researching and experimenting several methods and libraries. It seems that Racket got a ton of features, but failing to see in their docs a client class. I also tried using fsockopen ..

Read more

I have the following two users who should both be notified about an event. $employee_handling_request = $this->pay_later_request->plot->handlingPayRequests; $managing_landlord = $this->pay_later_request->plot->landlord; Currently, I can figure out how to broadcast to one of these users as follows: public function broadcastOn(){ return $this->pay_later_request->plot->handlingPayRequests->map(function ($user) { return new PrivateChannel(‘pay_later_request.’ . $user->user_id); })->toArray(); } or public function broadcastOn(){ return $this->pay_later_request->plot->landlord->map(function ..

Read more

i am using laravel websockets and using pusher service on client side when connect client from same server it is working but when connecting client from different server it is not working here is my pusher js for client connection <script> var module = { }; </script> <script src="https://js.pusher.com/4.3/pusher.min.js"></script> <script> var pusher = new Pusher("223455663", ..

Read more

i am using pusher sdk with out laravel-echo in laravel websockets i am able to subscribe channel but listening events functionality is not working below is my code which i am using for front end <script>var module = { };</script> <script src="https://js.pusher.com/4.3/pusher.min.js"></script> <script> var pusher = new Pusher("123123", { wsHost: window.location.hostname, wsPort: 6001, disableStats: true, ..

Read more