Работа над распаковкой websocket
This commit is contained in:
@@ -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() + ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user