File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
// :copyright: Copyright (c) 2016 ftrack
2
2
import { v4 as uuidV4 } from "uuid" ;
3
3
import loglevel from "loglevel" ;
4
+ import io from "./simple_socketio.js" ;
4
5
import { Event } from "./event.js" ;
5
6
import {
6
7
EventServerConnectionTimeoutError ,
@@ -9,7 +10,7 @@ import {
9
10
NotUniqueError ,
10
11
} from "./error.js" ;
11
12
import { Data } from "./types.js" ;
12
- import type io from "./simple_socketio.js" ;
13
+
13
14
interface BaseActionData {
14
15
selection : Array < {
15
16
entityId : string ;
@@ -177,9 +178,7 @@ export class EventHub {
177
178
}
178
179
179
180
/** 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 {
183
182
this . _socketIo = io . connect ( this . _serverUrl , this . _apiUser , this . _apiKey ) ;
184
183
this . _socketIo . on ( "connect" , this . _onSocketConnected ) ;
185
184
this . _socketIo . on ( "ftrack.event" , this . _handle ) ;
You can’t perform that action at this time.
0 commit comments