Skip to content

Commit 77cf513

Browse files
authored
Revert "feat: dynamic import of socketio client (#173)"
This reverts commit 058bbdc.
1 parent 058bbdc commit 77cf513

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/event_hub.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// :copyright: Copyright (c) 2016 ftrack
22
import { v4 as uuidV4 } from "uuid";
33
import loglevel from "loglevel";
4+
import io from "./simple_socketio.js";
45
import { Event } from "./event.js";
56
import {
67
EventServerConnectionTimeoutError,
@@ -9,7 +10,7 @@ import {
910
NotUniqueError,
1011
} from "./error.js";
1112
import { Data } from "./types.js";
12-
import type io from "./simple_socketio.js";
13+
1314
interface BaseActionData {
1415
selection: Array<{
1516
entityId: string;
@@ -177,9 +178,7 @@ export class EventHub {
177178
}
178179

179180
/** Connect to the event server. */
180-
async connect(): Promise<void> {
181-
const simple_socketio = await import("./simple_socketio.js");
182-
const io = simple_socketio.default;
181+
connect(): void {
183182
this._socketIo = io.connect(this._serverUrl, this._apiUser, this._apiKey);
184183
this._socketIo.on("connect", this._onSocketConnected);
185184
this._socketIo.on("ftrack.event", this._handle);

0 commit comments

Comments
 (0)