Compare commits

...

4 Commits

Author SHA1 Message Date
semantic-release-bot cc60ef4727 chore(release): 0.1.0-develop.3 [skip ci]
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-07-23)

### Features

* add setKeepAlive method ([19dceed](19dceedab2))
2023-07-23 18:40:45 +00:00
Derrick Hammer e6dd89b347
Merge remote-tracking branch 'origin/develop' into develop 2023-07-23 14:39:48 -04:00
Derrick Hammer 19dceedab2
feat: add setKeepAlive method 2023-07-23 14:39:42 -04:00
Derrick Hammer 88586ca65a
dep: update module hash 2023-07-23 14:38:58 -04:00
4 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-07-23)
### Features
* add setKeepAlive method ([19dceed](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/commit/19dceedab299c1cd35563c5c88a3f608cfc56deb))
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-23) # [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-23)
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.0.2-develop.14...v0.1.0-develop.1) (2023-07-22) # [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.0.2-develop.14...v0.1.0-develop.1) (2023-07-22)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/kernel-swarm-client", "name": "@lumeweb/kernel-swarm-client",
"version": "0.1.0-develop.2", "version": "0.1.0-develop.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel-swarm-client", "name": "@lumeweb/kernel-swarm-client",
"version": "0.1.0-develop.2", "version": "0.1.0-develop.3",
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.9", "@lumeweb/libkernel": "^0.1.0-develop.9",
"async-mutex": "^0.4.0", "async-mutex": "^0.4.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel-swarm-client", "name": "@lumeweb/kernel-swarm-client",
"version": "0.1.0-develop.2", "version": "0.1.0-develop.3",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -257,6 +257,13 @@ export class Socket extends Client {
return this.callModuleReturn("socketListeners", { id: this.id }); return this.callModuleReturn("socketListeners", { id: this.id });
} }
public setKeepAlive(ms: number) {
this.callModuleReturn("socketSetKeepAlive", {
id: this.id,
alive: ms,
});
}
private ensureEvent(event: string): void { private ensureEvent(event: string): void {
if (!(event in this.eventUpdates)) { if (!(event in this.eventUpdates)) {
this.eventUpdates[event] = new Map<Function, DataFn>(); this.eventUpdates[event] = new Map<Function, DataFn>();
@ -270,7 +277,7 @@ export class Socket extends Client {
} }
export const MODULE = export const MODULE =
"zduJV6FBVpg6XbRzPq2An5CymY8KFF1TGGq5GVYCgaByp9ym9D8YCunNWK"; "zduPmX9LEfyJTaGXDWPpcFeAcm4QsYYexM7FVzUKRuC9vehDUNYFp9r4Th";
export const createClient = factory<SwarmClient>(SwarmClient, MODULE); export const createClient = factory<SwarmClient>(SwarmClient, MODULE);