Compare commits

...

12 Commits

Author SHA1 Message Date
420d634e83 2.0.22 2023-03-29 13:47:03 +02:00
eb596e5dd8 fix(core): update 2023-03-29 13:47:03 +02:00
5748bd8280 2.0.21 2023-03-29 13:45:34 +02:00
4e8ea21df2 fix(core): update 2023-03-29 13:45:33 +02:00
6f4be3baaa 2.0.20 2023-03-20 19:23:20 +01:00
a484060888 fix(core): update 2023-03-20 19:23:20 +01:00
c1b15daaca 2.0.19 2023-03-20 17:06:33 +01:00
f9397feaf0 fix(core): update 2023-03-20 17:06:33 +01:00
889ec9c8ec 2.0.18 2022-12-29 12:17:59 +01:00
5d460cf002 fix(core): update 2022-12-29 12:17:58 +01:00
5e6ec0d311 2.0.17 2022-12-28 20:31:03 +01:00
dd834590cc fix(core): update 2022-12-28 20:31:03 +01:00
6 changed files with 991 additions and 713 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@apiglobal/typedsocket",
"version": "2.0.16",
"version": "2.0.22",
"private": false,
"description": "a typedrequest extension supporting websockets",
"main": "dist_ts/index.js",
@@ -18,17 +18,18 @@
"@gitzone/tsbundle": "^2.0.6",
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/smartenv": "^5.0.2",
"@pushrocks/smartenv": "^5.0.5",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.11.18"
"@types/node": "^18.15.11"
},
"dependencies": {
"@apiglobal/typedrequest": "^2.0.8",
"@apiglobal/typedrequest-interfaces": "2.0.1",
"@pushrocks/isohash": "^2.0.0",
"@pushrocks/smartjson": "^5.0.5",
"@pushrocks/smartsocket": "^2.0.11",
"@pushrocks/smartstring": "^4.0.2"
"@pushrocks/smartsocket": "^2.0.16",
"@pushrocks/smartstring": "^4.0.2",
"@pushrocks/smarturl": "^3.0.5"
},
"browserslist": [
"last 1 chrome versions"

1677
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedsocket',
version: '2.0.16',
version: '2.0.22',
description: 'a typedrequest extension supporting websockets'
}

View File

@@ -1 +1 @@
export * from './typedsocket.classes.typedsocket.js';
export * from './typedsocket.classes.typedsocket.js';

View File

@@ -97,12 +97,19 @@ export class TypedSocket {
},
smartsocketClient
);
console.log(`typedsocket triggering smartsocket to connect...`);
const before = Date.now();
await smartsocketClient.connect();
console.log(`typedsocket triggered smartsocket connected in ${Date.now() - before}ms!!!`)
return typedsocket;
}
public static useWindowLocationOriginUrl = () => {
const windowLocationResult = plugins.smarturl.Smarturl.createFromUrl(globalThis.location.origin).toString();
return windowLocationResult;
}
// INSTANCE
public side: TTypedSocketSide;
public typedrouter: plugins.typedrequest.TypedRouter;

View File

@@ -9,5 +9,6 @@ import * as isohash from '@pushrocks/isohash';
import * as smartjson from '@pushrocks/smartjson';
import * as smartsocket from '@pushrocks/smartsocket';
import * as smartstring from '@pushrocks/smartstring';
import * as smarturl from '@pushrocks/smarturl';
export { isohash, smartjson, smartsocket, smartstring };
export { isohash, smartjson, smartsocket, smartstring, smarturl };