fix(core): update

This commit is contained in:
2022-01-19 18:06:39 +01:00
parent 895464115e
commit 9fc4db1e35
7 changed files with 1803 additions and 1836 deletions

View File

@@ -91,13 +91,7 @@ export class SmartsocketClient {
public async connect() {
const done = plugins.smartpromise.defer();
const smartenvInstance = new plugins.smartenv.Smartenv();
const socketIoClient = await smartenvInstance.getEnvAwareModule({
nodeModuleName: 'socket.io-client',
webUrlArg: 'https://cdn.jsdelivr.net/npm/socket.io-client@2/dist/socket.io.js',
getFunction: () => {
return globalThis.io;
},
});
const socketIoClient = plugins.socketIoClient;
logger.log('info', 'trying to connect...');
const socketUrl = `${this.serverUrl}:${this.serverPort}`;
this.socketConnection = new SocketConnection({