Compare commits
4 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | cc60ef4727 | |
Derrick Hammer | e6dd89b347 | |
Derrick Hammer | 19dceedab2 | |
Derrick Hammer | 88586ca65a |
|
@ -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.1](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.0.2-develop.14...v0.1.0-develop.1) (2023-07-22)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-swarm-client",
|
||||
"version": "0.1.0-develop.2",
|
||||
"version": "0.1.0-develop.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/kernel-swarm-client",
|
||||
"version": "0.1.0-develop.2",
|
||||
"version": "0.1.0-develop.3",
|
||||
"dependencies": {
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.9",
|
||||
"async-mutex": "^0.4.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-swarm-client",
|
||||
"version": "0.1.0-develop.2",
|
||||
"version": "0.1.0-develop.3",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -257,6 +257,13 @@ export class Socket extends Client {
|
|||
return this.callModuleReturn("socketListeners", { id: this.id });
|
||||
}
|
||||
|
||||
public setKeepAlive(ms: number) {
|
||||
this.callModuleReturn("socketSetKeepAlive", {
|
||||
id: this.id,
|
||||
alive: ms,
|
||||
});
|
||||
}
|
||||
|
||||
private ensureEvent(event: string): void {
|
||||
if (!(event in this.eventUpdates)) {
|
||||
this.eventUpdates[event] = new Map<Function, DataFn>();
|
||||
|
@ -270,7 +277,7 @@ export class Socket extends Client {
|
|||
}
|
||||
|
||||
export const MODULE =
|
||||
"zduJV6FBVpg6XbRzPq2An5CymY8KFF1TGGq5GVYCgaByp9ym9D8YCunNWK";
|
||||
"zduPmX9LEfyJTaGXDWPpcFeAcm4QsYYexM7FVzUKRuC9vehDUNYFp9r4Th";
|
||||
|
||||
export const createClient = factory<SwarmClient>(SwarmClient, MODULE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue