diff --git a/package-lock.json b/package-lock.json index 81d5c8c..85f7667 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2332,9 +2332,9 @@ "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" }, "@types/node": { - "version": "14.14.16", - "resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.14.16.tgz", - "integrity": "sha512-naXYePhweTi+BMv11TgioE2/FXU4fSl29HAH1ffxVciNsH3rYXjNP2yM8wqmSm7jS20gM8TIklKiTen+1iVncw==" + "version": "14.14.22", + "resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.14.22.tgz", + "integrity": "sha512-g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw==" }, "@types/parcel-bundler": { "version": "1.12.1", diff --git a/package.json b/package.json index 0ad80bd..9f2e8dd 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@gitzone/tsbundle": "^1.0.78", "@gitzone/tstest": "^1.0.44", "@pushrocks/tapbundle": "^3.2.9", - "@types/node": "^14.14.16", + "@types/node": "^14.14.22", "tslint": "^6.1.3", "tslint-config-prettier": "^1.15.0" }, diff --git a/ts/typedsocket.classes.typedsocket.ts b/ts/typedsocket.classes.typedsocket.ts index ccc7cbe..16bf38a 100644 --- a/ts/typedsocket.classes.typedsocket.ts +++ b/ts/typedsocket.classes.typedsocket.ts @@ -66,14 +66,15 @@ export class TypedSocket { public static async createClient( typedrouterArg: plugins.typedrequest.TypedRouter, - serverUrl: string + serverUrlArg: string, + aliasArg = 'clientArg' ): Promise { const smartsocketClient = new plugins.smartsocket.SmartsocketClient({ - alias: 'client1', + alias: aliasArg, role: publicRoleName, password: publicRolePass, port: 3000, - url: serverUrl, + url: serverUrlArg, autoReconnect: true, }); smartsocketClient.addSocketFunction(