-
Notifications
You must be signed in to change notification settings - Fork 209
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
Multiplayer! #1431
Multiplayer! #1431
Conversation
…added socket alternatives to the webrtc networking layer
…ithubpreview.dev domain.
Well back to draft, trying out a better way of doing the hashHost passing |
We should do a full pass over to code to pretty it to either eslint or prettier, but we shouldn't keep multiple formats and format types, and we shouldn't make that change in an unrelated PR. |
I can take the linter out and undo any of its funkier changes. This should be enforcing the existing style guide though, so no file should change if it meets the lint requirements. |
Ah you're right, I'll clean up the eslint rules because they are not quite what I think we've been using for the code. |
Yeah we should fix that but not in this issue. |
One particularly nasty rule is the casing of hex literals, which are usually pasted from other tools and lists that we do not want munged by the prettier. https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/number-literal-case.md fails to mention what option to enable and to what value. |
I use .prettierignore to avoid munging third party libraries. Lets talk about the style in another CL. I can revert the significant style changes here easily. |
It's not the libraries, it's the content we paste in to local source files from sources like design templates (eg constantly changing |
I updated the |
Okay that should be easier to read, minus RoomClient which greatly needed some formating. |
constants.js
Outdated
export const dialogUrl = isGH | ||
? isOKHASH | ||
? hashHost[2] | ||
: window.location.hostname.replace('3000', '4443') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be better using a regex. We don't want to corrupt domains like robot3000.club
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could affect the githubpreview.dev hostname including subdomains only which seems unlikely. We're relying on an undocumented naming convention is the bigger issue imo.
Keep in mind that we lose hosted rooms support with this change: However, we can/should bring that back once we have audio working again. |
Depends on webaverse/dialog#7