Keep a count of open WebSockets by ASN region

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2026-03-09 16:29:20 -04:00
1 parent e96149ecf5
commit 11df65b8d8
8 files changed
+50 -7

No files matched your search

@@ -5,6 +5,7 @@
package org.whispersystems.websocket;
import com.google.common.net.HttpHeaders;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.security.SecureRandom;
import java.time.Instant;
@@ -105,4 +106,8 @@ public class WebSocketClient {
private long generateRequestId() {
return Math.abs(SECURE_RANDOM.nextLong());
}
public SocketAddress getRemoteAddress() {
return session.getRemoteAddress();
}
}