fix(core): update

This commit is contained in:
2020-12-26 18:45:17 +00:00
parent f18be49423
commit ab2b068ac4
3 changed files with 137 additions and 180 deletions

View File

@ -49,11 +49,11 @@ export class TypedSocket {
throw new Error('you need to specify the wanted targetConnection');
}
}
const response: T = (smartsocketServer.clientCall(
const response: T = await smartsocketServer.clientCall(
'processMessage',
dataArg,
targetConnectionArg
) as any) as T;
) as any;
return response;
},
smartsocketServer
@ -76,7 +76,7 @@ export class TypedSocket {
url: serverUrl,
autoReconnect: true,
});
smartsocketClient.socketFunctions.add(
smartsocketClient.addSocketFunction(
new plugins.smartsocket.SocketFunction({
funcName: 'processMessage',
allowedRoles: [],