Skip to content
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

Bugfix for wss protocol issue. #716

Merged
merged 14 commits into from
Mar 26, 2022
8 changes: 8 additions & 0 deletions docs/source/about/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Changed:
- :pull:`701`


0.37.2
------

Fixed:

- A typo caused IDOM to use the insecure `ws` web-socket protocol on pages loaded with `https` instead of the secure `wss` protocol - :pull:`716`


0.37.1
------

Expand Down
3 changes: 1 addition & 2 deletions src/client/packages/idom-app-react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ export function mount(mountPoint) {
port: document.location.port,
path: "../",
query: queryParams.user.toString(),
secture: document.location.protocol == "https",
secure: document.location.protocol == "https:",
});

mountWithLayoutServer(mountPoint, serverInfo, shouldReconnect() ? 45 : 0);
}

Expand Down