You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will be needed by some upcoming integration tests that I'm porting from
JS.
There might be a better way to do this (injecting a special CoreSDK and
thus not having to add this hook to the RealtimeObjects itself) but
it'll do.
/// Replaces the implementation of ``publish(objectMessages:)``.
12
+
///
13
+
/// Used by integration tests, for example to disable `ObjectMessage` publishing so that a test can verify that a behaviour is not a side effect of an `ObjectMessage` sent by the SDK.
/// Returns the current state of the Realtime channel that this wraps.
12
17
varchannelState:ARTRealtimeChannelState{get}
13
18
}
14
19
15
20
internalfinalclassDefaultCoreSDK:CoreSDK{
21
+
/// Used to synchronize access to internal mutable state.
22
+
privateletmutex=NSLock()
23
+
16
24
privateletchannel:AblyPlugin.RealtimeChannel
17
25
privateletclient:AblyPlugin.RealtimeClient
18
26
privateletpluginAPI:PluginAPIProtocol
19
27
privateletlogger:AblyPlugin.Logger
20
28
29
+
/// If set to true, ``publish(objectMessages:)`` will behave like a no-op.
30
+
///
31
+
/// This enables the `testsOnly_overridePublish(with:)` test hook.
32
+
///
33
+
/// - Note: This should be `throws(InternalError)` but that causes a compilation error of "Runtime support for typed throws function types is only available in macOS 15.0.0 or newer".
/// Replaces the method that this `RealtimeObjects` uses to send any outbound `ObjectMessage`s.
124
+
///
125
+
/// Used by integration tests, for example to disable `ObjectMessage` publishing so that a test can verify that a behaviour is not a side effect of an `ObjectMessage` sent by the SDK.
0 commit comments