fix(core): update
This commit is contained in:
parent
bd81f731ad
commit
6e4505256c
6
package-lock.json
generated
6
package-lock.json
generated
@ -2332,9 +2332,9 @@
|
|||||||
"integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA=="
|
"integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA=="
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "14.14.16",
|
"version": "14.14.22",
|
||||||
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.14.16.tgz",
|
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.14.22.tgz",
|
||||||
"integrity": "sha512-naXYePhweTi+BMv11TgioE2/FXU4fSl29HAH1ffxVciNsH3rYXjNP2yM8wqmSm7jS20gM8TIklKiTen+1iVncw=="
|
"integrity": "sha512-g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw=="
|
||||||
},
|
},
|
||||||
"@types/parcel-bundler": {
|
"@types/parcel-bundler": {
|
||||||
"version": "1.12.1",
|
"version": "1.12.1",
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"@gitzone/tsbundle": "^1.0.78",
|
"@gitzone/tsbundle": "^1.0.78",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.44",
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
"@pushrocks/tapbundle": "^3.2.9",
|
||||||
"@types/node": "^14.14.16",
|
"@types/node": "^14.14.22",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
|
@ -66,14 +66,15 @@ export class TypedSocket {
|
|||||||
|
|
||||||
public static async createClient(
|
public static async createClient(
|
||||||
typedrouterArg: plugins.typedrequest.TypedRouter,
|
typedrouterArg: plugins.typedrequest.TypedRouter,
|
||||||
serverUrl: string
|
serverUrlArg: string,
|
||||||
|
aliasArg = 'clientArg'
|
||||||
): Promise<TypedSocket> {
|
): Promise<TypedSocket> {
|
||||||
const smartsocketClient = new plugins.smartsocket.SmartsocketClient({
|
const smartsocketClient = new plugins.smartsocket.SmartsocketClient({
|
||||||
alias: 'client1',
|
alias: aliasArg,
|
||||||
role: publicRoleName,
|
role: publicRoleName,
|
||||||
password: publicRolePass,
|
password: publicRolePass,
|
||||||
port: 3000,
|
port: 3000,
|
||||||
url: serverUrl,
|
url: serverUrlArg,
|
||||||
autoReconnect: true,
|
autoReconnect: true,
|
||||||
});
|
});
|
||||||
smartsocketClient.addSocketFunction(
|
smartsocketClient.addSocketFunction(
|
||||||
|
Loading…
Reference in New Issue
Block a user