@chijs/client
Advanced tools
Comparing version 0.0.4 to 0.0.5
import { ManagerOptions, Socket, SocketOptions } from 'socket.io-client'; | ||
import { RpcHub, IClientRpcFns, IServerClientRpcFns, RpcWrapped } from '@chijs/core'; | ||
import { RpcHub, RpcWrapped } from '@chijs/core'; | ||
import type { IClientRpcFns, IServerClientRpcFns } from '@chijs/core'; | ||
export declare class ChiClient { | ||
@@ -11,1 +12,2 @@ socket: Socket; | ||
} | ||
export * from '@chijs/core'; |
@@ -13,7 +13,8 @@ import { io } from 'socket.io-client'; | ||
this.socket.on('rpc', (msg) => this.hub.handle(msg)); | ||
this.service = createRpcWrapper(this.hub, 'app:service:'); | ||
this.plugin = createRpcWrapper(this.hub, 'app:plugin:'); | ||
this.misc = createRpcWrapper(this.hub, 'app:misc:'); | ||
this.service = createRpcWrapper(this.hub.client, 'app:service:'); | ||
this.plugin = createRpcWrapper(this.hub.client, 'app:plugin:'); | ||
this.misc = createRpcWrapper(this.hub.client, 'app:misc:'); | ||
} | ||
} | ||
export * from '@chijs/core'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@chijs/client", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "lib/index.js", | ||
@@ -19,6 +19,5 @@ "license": "AGPL-3.0", | ||
"dependencies": { | ||
"@chijs/core": "^0.0.4", | ||
"@chijs/core": "^0.0.5", | ||
"socket.io-client": "^4.5.1" | ||
}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
@@ -25,0 +24,0 @@ "build": "node ../../scripts/build.mjs --package client", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3024
30
Updated@chijs/core@^0.0.5