Skip to content

Commit

Permalink
FIX remote channel closing
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Apr 8, 2023
1 parent 0c8e4b0 commit fe2d6f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/storage-remote/rx-storage-remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import type {
RxStorageRemoteSettings
} from './storage-remote-types';
import { closeMessageChannel, getMessageChannel } from './message-channel-cache';
import { ensureRxStorageInstanceParamsAreCorrect } from '../../rx-storage-helper';


export class RxStorageRemote implements RxStorage<RxStorageRemoteInternals, any> {
Expand Down Expand Up @@ -62,6 +63,8 @@ export class RxStorageRemote implements RxStorage<RxStorageRemoteInternals, any>
async createStorageInstance<RxDocType>(
params: RxStorageInstanceCreationParams<RxDocType, any>
): Promise<RxStorageInstanceRemote<RxDocType>> {
ensureRxStorageInstanceParamsAreCorrect(params);

const connectionId = 'c|' + this.getRequestId();

const cacheKeys: string[] = [
Expand Down

0 comments on commit fe2d6f1

Please sign in to comment.