- removed all ability to provide your cid to the server through params, cid is gained from JWT claims - improved verification of who owns a cid, which includes locking a cid to a uid - locks and persisting entries of broadcasting are cleaned up on disconnection - method identification logic was rewritten to fit these changes
21 lines
564 B
C#
21 lines
564 B
C#
using System;
|
|
|
|
namespace LightlessSyncServer.Configuration;
|
|
|
|
public interface IBroadcastConfiguration
|
|
{
|
|
string RedisKeyPrefix { get; }
|
|
TimeSpan BroadcastEntryTtl { get; }
|
|
int MaxStatusBatchSize { get; }
|
|
bool NotifyOwnerOnPairRequest { get; }
|
|
bool EnableBroadcasting { get; }
|
|
bool EnableSyncshellBroadcastPayloads { get; }
|
|
|
|
string BuildRedisKey(string hashedCid);
|
|
string BuildUserOwnershipKey(string userUid);
|
|
string BuildPairRequestNotification();
|
|
|
|
int PairRequestRateLimit { get; }
|
|
int PairRequestRateWindow { get; }
|
|
}
|