This commit is contained in:
Redkale
2017-05-21 12:52:01 +08:00
parent f68686114d
commit 7c533ce8d3

View File

@@ -276,7 +276,11 @@ public final class WebSocketPacket {
data[i] ^= mask[i % 4];
}
}
if (type == FrameType.TEXT) {
this.payload = new String(Utility.decodeUTF8(data));
} else {
this.bytes = data;
}
return this;
}