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

Handshake response object if handshake failed #29

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

a-palagin
Copy link
Contributor

Added handshake response object, so if error occurs on websocket handshake stage, server's response can be reachable for further decisions

…hsake stage, server's response can be reachable for further decisions
Copy link
Contributor

@JCash JCash left a comment

Choose a reason for hiding this comment

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

Looks good.
Some small notes to fix/check before I can merge into master.

websocket/src/handshake.cpp Outdated Show resolved Hide resolved
websocket/src/websocket.h Outdated Show resolved Hide resolved
@@ -67,6 +67,19 @@ const char* StateToString(State err)

#undef STRING_CASE

int dmStriCmp(const char* s1, const char* s2)
Copy link
Contributor

Choose a reason for hiding this comment

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

We do have dmStrCaseCmp: https://defold.com/ref/stable/dmStringFunc/#dmStrCaseCmp:s1-s2

Could that be used instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

It could. We'll make a mental note of it and do that in another PR.

@JCash JCash merged commit ac230a6 into defold:master Feb 4, 2021
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.

3 participants