fix(core): update

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

6
package-lock.json generated
View File

@ -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",

View File

@ -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"
},

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(