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.

How to use it over reverse proxy? #46

@leemmoox

Description

@leemmoox

Hello,

I would like to use your package(and replace old laravel-echo-server), but it doesn't work if you need to connect to websocker service running in subdirectory....

for example something like this:
http://yourdomain.com/application_name/ws

I have configured nginx as reverse proxy to redirect any connection from http://yourdomain.com/application_name/ws to websocket running on 6001 . how to configure this URL in laravel-echo?

There is only wsHost and wsPort and I need something like this:

window.Echo = new Echo({
broadcaster: 'pusher',
key: 'your-pusher-key',
wsUrl: 'http://yourdomain.com/application_name/ws',
disableStats: true,
});

Thx

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