Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0edc903900 | |||
| fa41192377 | |||
| 725e3c65c6 | |||
| 4e9108f7df | |||
| 420d634e83 | |||
| eb596e5dd8 | |||
| 5748bd8280 | |||
| 4e8ea21df2 | |||
| 6f4be3baaa | |||
| a484060888 | |||
| c1b15daaca | |||
| f9397feaf0 | |||
| 889ec9c8ec | |||
| 5d460cf002 | |||
| 5e6ec0d311 | |||
| dd834590cc | |||
| 96b7354dae | |||
| 3a5533c4fe |
11
package.json
11
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@apiglobal/typedsocket",
|
||||
"version": "2.0.15",
|
||||
"version": "2.0.24",
|
||||
"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.18",
|
||||
"@pushrocks/smartstring": "^4.0.2",
|
||||
"@pushrocks/smarturl": "^3.0.5"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
|
||||
1839
pnpm-lock.yaml
generated
1839
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@apiglobal/typedsocket',
|
||||
version: '2.0.15',
|
||||
version: '2.0.24',
|
||||
description: 'a typedrequest extension supporting websockets'
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * from './typedsocket.classes.typedsocket.js';
|
||||
export * from './typedsocket.classes.typedsocket.js';
|
||||
@@ -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() {
|
||||
return this.socketServerOrClient.eventSubject;
|
||||
}
|
||||
private postMethod: plugins.typedrequest.IPostMethod &
|
||||
((
|
||||
typedRequestPostObject: plugins.typedrequestInterfaces.ITypedRequest,
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user