fix(core): update
This commit is contained in:
@ -69,12 +69,15 @@ export class TypedSocket {
|
||||
serverUrlArg: string,
|
||||
aliasArg = 'clientArg'
|
||||
): Promise<TypedSocket> {
|
||||
const domain = new plugins.smartstring.Domain(serverUrlArg);
|
||||
|
||||
|
||||
const smartsocketClient = new plugins.smartsocket.SmartsocketClient({
|
||||
alias: aliasArg,
|
||||
role: publicRoleName,
|
||||
password: publicRolePass,
|
||||
port: 3000,
|
||||
url: serverUrlArg,
|
||||
port: domain.port || 3000,
|
||||
url: `${domain.nodeParsedUrl.protocol}//${domain.nodeParsedUrl.host}`,
|
||||
autoReconnect: true,
|
||||
});
|
||||
smartsocketClient.addSocketFunction(
|
||||
|
@ -10,8 +10,10 @@ export {
|
||||
// @pushrocks scope
|
||||
import * as isohash from '@pushrocks/isohash';
|
||||
import * as smartsocket from '@pushrocks/smartsocket';
|
||||
import * as smartstring from '@pushrocks/smartstring';
|
||||
|
||||
export {
|
||||
isohash,
|
||||
smartsocket
|
||||
smartsocket,
|
||||
smartstring
|
||||
}
|
||||
|
Reference in New Issue
Block a user