Обработка пакета 16 с пуш токенами

This commit is contained in:
RoyceDa
2026-02-11 11:48:36 +02:00
parent 867137a5fa
commit 0981cd3d4b
9 changed files with 196 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ public class Server extends WebSocketServer {
}
}
@SuppressWarnings("unchecked")
@Override
public void onMessage(WebSocket socket, ByteBuffer byteBuffer) {
Client client = socket.getAttachment();

View File

@@ -149,6 +149,7 @@ public class Client {
* @param key Ключ данных.
* @return Значение данных.
*/
@SuppressWarnings("unchecked")
public <T extends ECITag> T getTag(Class<? extends ECITag> eciTagClass) {
return (T) this.eciTags.get(eciTagClass);
}