Category : websocket

I have created a laravel event: <?php namespace AppEvents; use IlluminateBroadcastingChannel; use IlluminateBroadcastingInteractsWithSockets; use IlluminateBroadcastingPresenceChannel; use IlluminateBroadcastingPrivateChannel; use IlluminateContractsBroadcastingShouldBroadcastNow; use IlluminateFoundationEventsDispatchable; use IlluminateQueueSerializesModels; class AssetsInfo implements ShouldBroadcastNow { use Dispatchable, InteractsWithSockets, SerializesModels; public $actionId; public $actionData; public function __construct($actionId, $actionData) { $this->actionId = $actionId; $this->actionData = $actionData; } public function broadcastOn() { return new Channel(‘sahmshenas-channel’); ..

Read more

Hi i need force a conection wss to ws I have a 2 web both in laravel 1-) api web with SSL(https) active 2-) api websocket back only http I need to connect them both using pusher configuration front (apiweb) resource/js/bootstrap.js window.Echo = new Echo({ broadcaster: ‘pusher’, key: process.env.MIX_PUSHER_APP_KEY, cluster: process.env.MIX_PUSHER_APP_CLUSTER, forceTLS: false, enabledTransports: [‘ws’], ..

Read more

I have Managed VPS and i encountered this error when i try to use websockets with apache. here is my env part. i have configured seperate subdomain for websockets which have its own ssl. and in combined file i have both cert and private key. LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT=/var/cpanel/ssl/apache_tls/wss.mbaye.ml/combined LARAVEL_WEBSOCKETS_SSL_LOCAL_PK=/var/cpanel/ssl/apache_tls/wss.mbaye.ml/combined here is websockets part. ‘dashboard’ => [ ‘port’ ..

Read more

General scheme and project configuration files The project consists of two parts: Server part – Laravel (api) Customer part – NuxtJs (client) A minimum project configuration has been prepared for the test: Laravel Websockets packages have been installed: beyondcode/laravel-websockets: https://beyondco.de/docs/laravel-websockets/getting-started/introduction pusher/pusher-php-server: https://pusher.com/tutorials/web-notifications-laravel-pusher-channels File composer.json: … "require": { "php": "^7.3", "beyondcode/laravel-websockets": "^1.8", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^2.0", ..

Read more

I am using laravel 6 and I want to deploy laravel based websocket server using supervisor on google cloud Flex app engine platform. I am using this package: beyondcode/laravel-websockets I have setup everything and everything is working fine on local machine! What is the exact procedure to follow to deploy it on GCP? My additional-supervisord.conf ..

Read more

I keep getting this error WebSocket connection to ‘wss://my-website-name.com/app/sampe-key?protocol=7&client=js&version=4.4.0&flash=false’ failed: Error during WebSocket handshake: Unexpected response code: 404 Is there anymore with the code and configuration on how to handle this? I need sample code on the following to get it to work. enter image description here Sourc..

Read more

I’m looking at creating a publicly availale API for my Laravel app and I was what the best way to go about it would be, I’m currently using Passport for authentication with a personal access token getting generated from a page on my website. However this token is very lengthy compared to the tokens/keys you ..

Read more

I was implementing laravel websockets package in project it is working fine in my local machine but on server first it was giving error of Connection timeout That problem was solved when add TCP port in aws security group but after that it starts giving new error WebSocket connection to ‘ws://52.64.101.38:6001/app/ABCDEF?protocol=7&client=js&version=4.3.1&flash=false’ failed: Error in connection ..

Read more

I have implemented websocket in laravel framework. It is working fine on localhost windows OS but giving error on live ubuntu server ["Connecting",{"transport":"ws","url":"ws://IP-Address:6001/app/qwerty?protocol=7&client=js&version=7.0.0&flash=false"}] I think this is error because port is not allowing to connect. but i am not sure about it. What should i do? I am using aws webservices Sourc..

Read more

I am using the pusher replacement package https://beyondco.de/docs/laravel-websockets/basic-usage/starting. This package is working fine on the localhost but working on a live server giving this error. app.js:1 WebSocket connection to ‘ws://IP-Addresss:3030/app/qwerty?protocol=7&client=js&version=7.0.0&flash=false’ failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT I think because the server is Linux may there is a port issue. I run laravel WebSocket server on ..

Read more