fix(core): update
This commit is contained in:
@ -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: [],
|
||||
|
Reference in New Issue
Block a user