Compare commits

...

22 Commits

Author SHA1 Message Date
f62497ce48 2.0.28 2023-08-06 16:37:40 +02:00
64e5f30bad fix(core): update 2023-08-06 16:37:39 +02:00
1b41d5e3ad 2.0.27 2023-08-05 12:00:28 +02:00
c5954aa880 fix(core): update 2023-08-05 12:00:27 +02:00
b58d8084e9 2.0.26 2023-08-05 11:46:40 +02:00
f765e60e1f fix(core): update 2023-08-05 11:46:39 +02:00
b726669c4b 2.0.25 2023-08-04 16:22:40 +02:00
4f0066b5ca fix(core): update 2023-08-04 16:22:39 +02:00
0edc903900 2.0.24 2023-03-29 19:02:10 +02:00
fa41192377 fix(core): update 2023-03-29 19:02:10 +02:00
725e3c65c6 2.0.23 2023-03-29 16:29:58 +02:00
4e9108f7df fix(core): update 2023-03-29 16:29:58 +02:00
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
9 changed files with 1967 additions and 1391 deletions

View File

@@ -3,10 +3,10 @@
"projectType": "npm",
"module": {
"githost": "gitlab.com",
"gitscope": "apiglobal",
"gitscope": "api.global",
"gitrepo": "typedsocket",
"description": "a typedrequest extension supporting websockets",
"npmPackagename": "@apiglobal/typedsocket",
"npmPackagename": "@api.global/typedsocket",
"license": "MIT",
"projectDomain": "api.global"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@apiglobal/typedsocket",
"version": "2.0.17",
"name": "@api.global/typedsocket",
"version": "2.0.28",
"private": false,
"description": "a typedrequest extension supporting websockets",
"main": "dist_ts/index.js",
@@ -14,21 +14,23 @@
"buildDocs": "tsdoc"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.63",
"@gitzone/tsbundle": "^2.0.6",
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/smartenv": "^5.0.4",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.11.18"
"@gitzone/tsbuild": "^2.1.66",
"@gitzone/tsbundle": "^2.0.8",
"@gitzone/tsrun": "^1.2.44",
"@gitzone/tstest": "^1.0.77",
"@push.rocks/smartenv": "^5.0.5",
"@push.rocks/tapbundle": "^5.0.12",
"@types/node": "^20.4.8"
},
"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.12",
"@pushrocks/smartstring": "^4.0.2"
"@api.global/typedrequest": "^3.0.1",
"@api.global/typedrequest-interfaces": "^3.0.1",
"@push.rocks/isohash": "^2.0.0",
"@push.rocks/smartjson": "^5.0.5",
"@push.rocks/smartrx": "^3.0.6",
"@push.rocks/smartsocket": "^2.0.22",
"@push.rocks/smartstring": "^4.0.2",
"@push.rocks/smarturl": "^3.0.5"
},
"browserslist": [
"last 1 chrome versions"

3280
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
import { tap, expect } from '@pushrocks/tapbundle';
import { tap, expect } from '@push.rocks/tapbundle';
import * as typedsocket from '../ts/index.js';

View File

@@ -1,6 +1,6 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as typedrequest from '@apiglobal/typedrequest';
import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
import { expect, tap } from '@push.rocks/tapbundle';
import * as typedrequest from '@api.global/typedrequest';
import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
import * as typedsocket from '../ts/index.js';

View File

@@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@apiglobal/typedsocket',
version: '2.0.17',
name: '@api.global/typedsocket',
version: '2.0.28',
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,15 +97,25 @@ 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;
public get eventSubject(): plugins.smartrx.rxjs.Subject<plugins.smartsocket.TConnectionStatus> {
return this.socketServerOrClient.eventSubject;
}
private postMethod: plugins.typedrequest.IPostMethod &
((
typedRequestPostObject: plugins.typedrequestInterfaces.ITypedRequest,

View File

@@ -1,13 +1,15 @@
// @apiglobal scope
import * as typedrequest from '@apiglobal/typedrequest';
import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
import * as typedrequest from '@api.global/typedrequest';
import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
export { typedrequest, typedrequestInterfaces };
// @pushrocks scope
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 isohash from '@push.rocks/isohash';
import * as smartjson from '@push.rocks/smartjson';
import * as smartrx from '@push.rocks/smartrx';
import * as smartsocket from '@push.rocks/smartsocket';
import * as smartstring from '@push.rocks/smartstring';
import * as smarturl from '@push.rocks/smarturl';
export { isohash, smartjson, smartsocket, smartstring };
export { isohash, smartjson, smartrx, smartsocket, smartstring, smarturl };