Skip to content

Commit

Permalink
Change import style for ably-js
Browse files Browse the repository at this point in the history
This amends the import so it does not default to the named export.
  • Loading branch information
Dominik Piatek authored and dpiatek committed Jun 22, 2023
1 parent 804b52b commit cbec4d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Spaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Types, Realtime } from 'ably';
import * as Ably from 'ably';
import { Types } from 'ably';

import SpaceOptions from './options/SpaceOptions.js';
import Space from './Space.js';
Expand All @@ -18,7 +19,7 @@ class Spaces {
} else {
let options: Types.ClientOptions = typeof optionsOrAbly === 'string' ? { key: optionsOrAbly } : optionsOrAbly;
this.addAgent(options, true);
this.ably = new Realtime.Promise(options);
this.ably = new Ably.Realtime.Promise(options);
}
this.ably.time();
}
Expand Down

0 comments on commit cbec4d2

Please sign in to comment.