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

Consolidate status codes #151

Closed
wants to merge 2 commits into from

Conversation

cristaloleg
Copy link
Contributor

No description provided.

@@ -204,31 +204,29 @@ type StatusCode int
// These codes were retrieved from:
// https://www.iana.org/assignments/websocket/websocket.xhtml#close-code-number
const (
StatusNormalClosure StatusCode = 1000 + iota
Copy link
Contributor

@nhooyr nhooyr Sep 26, 2019

Choose a reason for hiding this comment

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

This is 👍 since iota does make it harder to tell what number each status code corresponds to.

frame.go Outdated Show resolved Hide resolved
@nhooyr
Copy link
Contributor

nhooyr commented Sep 26, 2019

@cristaloleg Could you change the second commit to start with a capital? Then this should be good for merge.

@nhooyr nhooyr closed this in 71d69de Sep 27, 2019
@cristaloleg cristaloleg deleted the use-const-for-statuses branch October 2, 2019 11:05
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