Include timestamps in all server-to-client websocket messages.

This commit is contained in:
Jon Chambers
2020-05-21 11:15:36 -04:00
committed by Jon Chambers
parent eb8b5e5c01
commit a25af36e32
4 changed files with 29 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
package org.whispersystems.textsecuregcm.util;
public class TimestampHeaderUtil {
public static final String TIMESTAMP_HEADER = "X-Signal-Timestamp";
private TimestampHeaderUtil() {
}
public static String getTimestampHeader() {
return TIMESTAMP_HEADER + ":" + System.currentTimeMillis();
}
}