Работа над распаковкой websocket

This commit is contained in:
serega6531
2020-04-04 22:53:29 +03:00
parent 373f97784a
commit e25e66d727
5 changed files with 252 additions and 174 deletions

View File

@@ -54,4 +54,14 @@ public class Packet {
private byte[] content;
@Transient
@JsonIgnore
public String getContentString() {
return new String(content);
}
public String toString() {
return "Packet(id=" + id + ", content=" + getContentString() + ")";
}
}