Skip to content

Commit

Permalink
websocket: fix opcodes values for ping/pong
Browse files Browse the repository at this point in the history
And also set close

Ticket: 7025
  • Loading branch information
catenacyber authored and victorjulien committed May 14, 2024
1 parent 8b103ae commit 806052d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/src/websocket/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ pub enum WebSocketOpcode {
Continuation = 0,
Text = 1,
Binary = 2,
Ping = 8,
Pong = 9,
Close = 8,
Ping = 9,
Pong = 10,
}

#[derive(Clone, Debug, Default)]
Expand Down

0 comments on commit 806052d

Please sign in to comment.