-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolving polling URL #684
Comments
You can alter the domain for websockets via // This will result in something like this in
// the socket connector code
// browserSync.io('localhost:3003/browser-sync')
socket: {
namespace: function (namespace) {
return "localhost:3003" + namespace;
}
} |
Getting the following error now:
|
Yeah, sorry this is a bug we're working on asap. |
Thanks Shane, really appreciate the updates on this! |
Please see #690 tl;dr socket: {
domain: "localhost:3000"
} |
That fixed it, thanks! |
@shakyShane you just solved my issue for running browsersync on the vm host(windows), accessed from a site that's hosted on vagrant/homestead. This is totally awesome!! This has been days in the fix.. Working setup Vagrantfile
browsersync portion of gulpfile
note, you have to have a watch to trigger browsersync still. footer of main body
So, a bit of history, And finally in an effort to help anyone else trying to work out the homestead issue, some notes on that;
|
Hi all,
My gulp task is setup with the bare-bones browser-sync instance within a WordPress site:
gulp.task 'browser-sync', -> browserSync() return
I'm not able to use the proxy option due to this being a multisite install -- so I went the route of adding the following right before
</body>
:I'm not able to use
HOST
as the variable here though, because the file is not available going throughhttp://wpsite.dev:3000/browser-sync/browser-sync-client.2.7.12.js
and only works by going tolocal:3000/browser-sync/browser-sync-client.2.7.12.js
, so I changed the above to the following:The problem now is that when browsersync is polling the page, it is using the site URL to reference the GET request, so I get these console errors:
http://wpsite.dev:3000/browser-sync/socket.io/?EIO=3&transport=polling&t=1434574564882-43 net::ERR_CONNECTION_REFUSED
How can I set those URLs to use
localhost
in this case as well? I looked intoscriptPath
, but that did not change anything. Thanks!Note
I am running the install through Vagrant.
The text was updated successfully, but these errors were encountered: