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

feat: add sockProtocol option to overlay #242

Merged
merged 8 commits into from
Nov 19, 2020
Merged

feat: add sockProtocol option to overlay #242

merged 8 commits into from
Nov 19, 2020

Conversation

patrikholcak
Copy link
Contributor

Allow forcing protocol for socket. This fixes error in non-standard environments like running the page with "data:" protocol. In that case it is impossible to know if the communication requires http or https.

All in all, having more configuration where it makes sense is always good and having a way to configure the protocol is one thing that seems to always be overlooked (eg. create-react-app)

docs/API.md Outdated Show resolved Hide resolved
docs/API.md Outdated Show resolved Hide resolved
types/types.d.ts Outdated Show resolved Hide resolved
@patrikholcak patrikholcak requested a review from pmmmwh November 4, 2020 08:59
test/unit/validateOptions.test.js Outdated Show resolved Hide resolved
docs/API.md Outdated Show resolved Hide resolved
sockets/utils/getSocketUrlParts.js Outdated Show resolved Hide resolved
Copy link
Owner

@pmmmwh pmmmwh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last nitpick in my preference of grammar. Otherwise good to go.

However this might have to wait a bit for me to fix the flimsy chromium tests first before merge to make sure stuff pass 🙈

docs/API.md Outdated Show resolved Hide resolved
@patrikholcak
Copy link
Contributor Author

@pmmmwh Let me know if you need any help with the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants