question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to change pusher's host ?

See original GitHub issue

when it’s using pusher-js alone we can change the ws host,

let pusher = new Pusher('123456', {
  wsHost: '192.168.10.10',
  wsPort: '8080',
  wssPort: '8080',
  enabledTransports: ['ws', 'flash']
});

is there a way to change wsHost when we using Echo?

This doesn’t work:

window.Echo = new Echo({
  broadcaster: 'pusher',
  host: '192.168.10.10',
 key:'123'
});

it’s still go to ws://ws.pusher.com

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
vesper8commented, Oct 30, 2018

I thought I would share what eventually worked for me:

  window.Pusher = require('pusher-js');

  window.Echo = new Echo({
    broadcaster: 'pusher',
    key: 'xxxkeyxxx',
    cluster: 'mt1',
    encrypted: true,
  });

  window.Echo.connector.pusher.config.authEndpoint = `https://api.xxx.com/broadcasting/auth`;
0reactions
burimdervishollirrotacommented, Apr 12, 2020

@vesper8 I’ve been looking for 3 days for this solutions thanks a lot man

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to change pusher host to connect to /broadcasting/auth ...
I use Laravel Echo with Pusher and it always wants to use https://www.xxx.com/broadcasting/auth to join my channels. I need it to be https://api ......
Read more >
Cluster Configuration - Pusher Channels Docs
Setting the cluster option will change the host parameter of the Channels library you are using. This happens only when the host option...
Read more >
Packet Pushers has a New Hosting Provider
Host of the Packet Pushers Podcast on data networking at https://packetpushers.net - now one of the largest networking podcasts on the ...
Read more >
Packet Pushers: All About Optics - InterOptic
... with Ethan Banks and Greg Ferro, hosts of The Packet Pushers Weekly Show. ... And you know, there is nothing that is...
Read more >
AMA - Greg Ferro from Packet Pushers Podcast, 25 Year ...
I'm an 25 year survivor of Enterprise IT, the co-host of the Packet ... So I would say that the transition in technology...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found