Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

connection failure in wss port #732

@Chegua

Description

@Chegua

Greetings dear, I currently have problems for the transmission of events via websocket with the use of the laravel-websocket package. This problem occurs in production, I have in mind the necessary configurations for the https connection, but in the same way it shows me a link like this wss: //mysite.com: 6001 / app / mykey? Protocol = 7 & client = js & version = 7.0.3 & flash = false
been with 101.

config/broadcast.php
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => env('BC_USE_TLS'),
'encrypted' => env("BC_ENCRYPTED"),
'host' => env("BC_HOST"),
'port' => env("BC_PORT"),
'scheme' => env("BC_SCHEME"),
'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
]
],

resources/js/bootstrap.js

window.Echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
cluster: process.env.MIX_PUSHER_APP_CLUSTER,
encrypted: process.env.MIX_BC_ENCRYPTED === "true",
wsHost: window.location.hostname,
wsPort: Number(process.env.MIX_BC_PORT),
wssPort: Number(process.env.MIX_BC_PORT),
disableStats: true,
forceTLS: true,
enabledTransports: ['ws', 'wss']
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions