-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fails to work due to SocketException #5
Comments
It seems --enable-vm-service=8181 should do as this is the port that is hard coded but it also fails with the same error |
Same problem for me on Ubuntu:
It works when I use this snippet (posted by @mindplay-dk on gitter) instead of the one shown in this lib's docs: if (HotReloader.isHotReloadable) {
var info = await dev.Service.getInfo();
var uri = info.serverUri;
uri = uri.replace(path: path.join(uri.path, 'ws'));
if (uri.scheme == 'https') {
uri = uri.replace(scheme: 'wss');
} else {
uri = uri.replace(scheme: 'ws');
}
print('Hot reloading enabled');
final reloader = HotReloader(vmServiceUrl: uri.toString());
await reloader.addPath('.');
await reloader.go();
} |
Please submit a PR. |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running with
final reloader = new HotReloader();
reloader.addPath('.');
await reloader.go();
with --enable-vm-service=1 args the following error occures:
Exception has occurred.
SocketException (SocketException: OS Error: The remote computer refused the network connection.
, errno = 1225, address = localhost, port = 54394)
The text was updated successfully, but these errors were encountered: