Skip to content

Commit

Permalink
Fix close code constants
Browse files Browse the repository at this point in the history
The values 1002 and 1003 were swapped compared to the RFC.
  • Loading branch information
Garmelon authored Oct 27, 2024
1 parent b44a1c3 commit 4412fa6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public class CloseMessage {
*/
public static final int NORMAL_CLOSURE = 1000;
public static final int GOING_AWAY = 1001;
public static final int WRONG_CODE = 1002;
public static final int PROTOCOL_ERROR = 1003;
public static final int PROTOCOL_ERROR = 1002;
public static final int WRONG_CODE = 1003;
public static final int MSG_CONTAINS_INVALID_DATA = 1007;
public static final int MSG_VIOLATES_POLICY = 1008;
public static final int MSG_TOO_BIG = 1009;
Expand Down

0 comments on commit 4412fa6

Please sign in to comment.