G
G
grigorie19902020-02-13 17:43:38
JavaScript
grigorie1990, 2020-02-13 17:43:38

How to organize communication between two different sites using laravel websocket?

Good afternoon!
Do not tell me, I'm trying to connect via laravel websocket on the client (third-party site with a downloaded script from 88f02f9f.ngrok.io)

window.Echo = new Echo({
                            broadcaster: 'pusher',
                            key: process.env.MIX_PUSHER_APP_KEY,
                            cluster: process.env.MIX_PUSHER_APP_CLUSTER,                           
                            wsHost: '88f02f9f.ngrok.io',
                            wsPort: 6001,
                        });


mistake
index.min.js:1 WebSocket connection to 'wss://88f02f9f.ngrok.io/app/123?protocol=7&client=js&version=5.0.3&flash=false' failed: Error during WebSocket handshake: Unexpected response code: 404


that is, I have a bunch of client on the first server and Laravel websocket on the second (via ngrok)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question