Skip to content

Commit

Permalink
To add NOT_FIN opcode. Opcode===0 when fin===0.
Browse files Browse the repository at this point in the history
  • Loading branch information
weifuchuan committed May 15, 2019
1 parent e1554da commit 1aebb26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public enum Opcode {

TEXT((byte) 1), BINARY((byte) 2), CLOSE((byte) 8), PING((byte) 9), PONG((byte) 10);
NOT_FIN((byte) 0), TEXT((byte) 1), BINARY((byte) 2), CLOSE((byte) 8), PING((byte) 9), PONG((byte) 10);

private static final Map<Byte, Opcode> map = new HashMap<>();

Expand Down

0 comments on commit 1aebb26

Please sign in to comment.