diff --git a/src/common/lib/client/baserealtime.ts b/src/common/lib/client/baserealtime.ts index 7164c04b7d..971ec09038 100644 --- a/src/common/lib/client/baserealtime.ts +++ b/src/common/lib/client/baserealtime.ts @@ -9,7 +9,6 @@ import ProtocolMessage from '../types/protocolmessage'; import { ChannelOptions } from '../../types/channel'; import ClientOptions from '../../types/ClientOptions'; import * as API from '../../../../ably'; -import ConnectionManager from '../transport/connectionmanager'; import { ModulesMap } from './modulesmap'; /** @@ -40,10 +39,6 @@ class BaseRealtime extends BaseClient { Logger.logAction(Logger.LOG_MINOR, 'Realtime.close()', ''); this.connection.close(); } - - static Utils = Utils; - static ConnectionManager = ConnectionManager; - static ProtocolMessage = ProtocolMessage; } class Channels extends EventEmitter { diff --git a/src/common/lib/client/defaultrealtime.ts b/src/common/lib/client/defaultrealtime.ts index b52c280070..4b75d9bd94 100644 --- a/src/common/lib/client/defaultrealtime.ts +++ b/src/common/lib/client/defaultrealtime.ts @@ -1,6 +1,9 @@ import BaseRealtime from './baserealtime'; import ClientOptions from '../../types/ClientOptions'; import { allCommonModules } from './modulesmap'; +import * as Utils from '../util/utils'; +import ConnectionManager from '../transport/connectionmanager'; +import ProtocolMessage from '../types/protocolmessage'; /** `DefaultRealtime` is the class that the non tree-shakable version of the SDK exports as `Realtime`. It ensures that this version of the SDK includes all of the functionality which is optionally available in the tree-shakable version. @@ -9,4 +12,8 @@ export class DefaultRealtime extends BaseRealtime { constructor(options: ClientOptions) { super(options, allCommonModules); } + + static Utils = Utils; + static ConnectionManager = ConnectionManager; + static ProtocolMessage = ProtocolMessage; }