@@ -59,7 +59,13 @@ export type MatrixRTCSessionEventHandlerMap = {
59
59
) => void ;
60
60
[ MatrixRTCSessionEvent . MembershipManagerError ] : ( error : unknown ) => void ;
61
61
} ;
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.
63
69
export interface MembershipConfig {
64
70
/**
65
71
* Use the new Manager.
@@ -93,14 +99,6 @@ export interface MembershipConfig {
93
99
/** @deprecated renamed to `membershipEventExpiryHeadroomMs`*/
94
100
membershipExpiryTimeoutHeadroom ?: number ;
95
101
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
-
104
102
/**
105
103
* The timeout (in milliseconds) with which the deleayed leave event on the server is configured.
106
104
* 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 {
125
123
* The maximum number of retries that the manager will do for delayed event sending/updating and state event sending when a network error occurs.
126
124
*/
127
125
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 ;
128
134
}
129
135
130
136
export interface EncryptionConfig {
0 commit comments