@@ -59,7 +59,13 @@ export type MatrixRTCSessionEventHandlerMap = {
5959 ) => void ;
6060 [ MatrixRTCSessionEvent . MembershipManagerError ] : ( error : unknown ) => void ;
6161} ;
62-
62+ // The names follow these principles:
63+ // - we use the tehcnical term delay if the option is related to delayed events.
64+ // - we use delayedLeaveEvent if the option is related to the delayed leave event.
65+ // - we use membershipEvent if the option is related to the rtc member state event.
66+ // - we use the technical term expiry if the option is related to the expiry field of the membership state event.
67+ // - we use a `MS` postfix if the option is a duration to avoid using words like:
68+ // `time`, `duration`, `delay`, `timeout`... that might be mistaken/confused with technical terms.
6369export interface MembershipConfig {
6470 /**
6571 * Use the new Manager.
@@ -93,14 +99,6 @@ export interface MembershipConfig {
9399 /** @deprecated renamed to `membershipEventExpiryHeadroomMs`*/
94100 membershipExpiryTimeoutHeadroom ?: number ;
95101
96- /**
97- * The minimum delay (in milliseconds) after which we will retry sending the membership event if it
98- * failed to send.
99- */
100- networkErrorLocalRetryMs ?: number ;
101- /** @deprecated renamed to `networkErrorLocalRetryMs`*/
102- callMemberEventRetryDelayMinimum ?: number ;
103-
104102 /**
105103 * The timeout (in milliseconds) with which the deleayed leave event on the server is configured.
106104 * After this time the server will set the event to the disconnected stat if it has not received a keep-alive from the client.
@@ -125,6 +123,14 @@ export interface MembershipConfig {
125123 * The maximum number of retries that the manager will do for delayed event sending/updating and state event sending when a network error occurs.
126124 */
127125 maximumNetworkErrorRetryCount ?: number ;
126+
127+ /**
128+ * The time (in milliseconds) after which we will retry a http request if it
129+ * failed to send due to a network error. (send membership event, send delayed event, restart delayed event...)
130+ */
131+ networkErrorRetryMs ?: number ;
132+ /** @deprecated renamed to `networkErrorRetryMs`*/
133+ callMemberEventRetryDelayMinimum ?: number ;
128134}
129135
130136export interface EncryptionConfig {
0 commit comments