pusher / pusher-js

Pusher Javascript library
http://pusher.com
MIT License
2.11k stars 374 forks source link

PageSpeed Insights Failed: net::ERR_NAME_NOT_RESOLVED #823

Open HarbourDesign opened 5 months ago

HarbourDesign commented 5 months ago

Trying to figure out if this is a pusher-js issue or Laravel or PageSpeed Insights issue. The chatwidget I built with Vue 3, Laravel 11.1.0, Inertia and breeze works fine, but when I perform PageSpeed Insights I get this error:

WebSocket connection to 'wss://ws-mt1.pusher.com/app/5a5a5a5a5a5a5a5 ?protocol=7&client=js&version=8.4.0-rc2&flash=false' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

If I set disabledTransports to this: disabledTransports: [ 'ws','xhr_streaming', 'xhr_polling', 'sockjs'],
the error goes away, but chatwidget doesn't work.

Is there a way to only use wss with Laravel, my webhost also request wss.

MichelMan commented 5 months ago

Hi I have the same pb as you. Trying to figure it out how to fix this error with Laravel, Vue3, Laravel Websocket + Echo for my chat system.

WebSocket connection to 'wss://<APP_HOST>/app/<APP_KEY>?protocol=7&client=js&version=8.3.0&flash=false' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

This error displays only on PageSpeed Insights test. But when I run the Lighthouse test, there are no errors about this. I'm not sure why, maybe it's because I read that PageSpeed Insights and Lighthouse tests are produced in different way...

MarcGodard commented 3 months ago

You guys ever figure this out? Having the same issue.

rsmything commented 2 months ago

The same issue. It's impossible to reach 100/100 on pagespeed insights

Lineapasta commented 2 months ago

Same issue

justpliz commented 3 days ago

The same