fix(core): update

This commit is contained in:
2021-01-21 14:26:48 +00:00
parent bd81f731ad
commit 6e4505256c
3 changed files with 8 additions and 7 deletions

View File

@ -66,14 +66,15 @@ export class TypedSocket {
public static async createClient(
typedrouterArg: plugins.typedrequest.TypedRouter,
serverUrl: string
serverUrlArg: string,
aliasArg = 'clientArg'
): Promise<TypedSocket> {
const smartsocketClient = new plugins.smartsocket.SmartsocketClient({
alias: 'client1',
alias: aliasArg,
role: publicRoleName,
password: publicRolePass,
port: 3000,
url: serverUrl,
url: serverUrlArg,
autoReconnect: true,
});
smartsocketClient.addSocketFunction(