Exclude Continuations from Frame.Type
This commit is contained in:
parent
053f91c8a0
commit
b37bd2b665
|
@ -35,6 +35,12 @@ public interface Frame extends javax.net.websocket.extensions.Frame
|
|||
|
||||
public static Type from(byte op)
|
||||
{
|
||||
if (op == 0)
|
||||
{
|
||||
// continuation has no type, but is a valid opcode.
|
||||
return null;
|
||||
}
|
||||
|
||||
for (Type type : values())
|
||||
{
|
||||
if (type.opcode == op)
|
||||
|
|
Loading…
Reference in New Issue