Compare commits

...

4 Commits

Author SHA1 Message Date
semantic-release-bot 3669528c56 chore(release): 0.1.0-develop.1 [skip ci]
# [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)

### Features

* add getListeners method to Socket ([0ec1dd1](0ec1dd1aac))
2023-07-22 14:15:11 +00:00
Derrick Hammer 61cee154e5
Merge remote-tracking branch 'origin/develop' into develop 2023-07-22 10:14:08 -04:00
Derrick Hammer 0ec1dd1aac
feat: add getListeners method to Socket 2023-07-22 10:14:01 -04:00
Derrick Hammer 8c6b038f89
dep: update module hash 2023-07-22 10:11:15 -04:00
4 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [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)
### Features
* add getListeners method to Socket ([0ec1dd1](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/commit/0ec1dd1aacdce1e85d6250db9b61a3edccfaafa7))
## [0.0.2-develop.14](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.0.2-develop.13...v0.0.2-develop.14) (2023-07-22) ## [0.0.2-develop.14](https://git.lumeweb.com/LumeWeb/kernel-swarm-client/compare/v0.0.2-develop.13...v0.0.2-develop.14) (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.0.2-develop.14", "version": "0.1.0-develop.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel-swarm-client", "name": "@lumeweb/kernel-swarm-client",
"version": "0.0.2-develop.14", "version": "0.1.0-develop.1",
"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.0.2-develop.14", "version": "0.1.0-develop.1",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -253,6 +253,10 @@ export class Socket extends Client {
); );
} }
async getListeners() {
return this.callModuleReturn("socketListeners", { id: this.id });
}
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>();
@ -266,7 +270,7 @@ export class Socket extends Client {
} }
export const MODULE = export const MODULE =
"zduN1xKFUkDrPtUdvL9Sih7A6mAcnkhR6JuLtStf3zgCcpEsPyqkmbcoHH"; "zduNSYinQrrjB2s7Y57ABL7BCic5gD64p9rhrdvfoN4i5rQE2C9U3Q7jSF";
export const createClient = factory<SwarmClient>(SwarmClient, MODULE); export const createClient = factory<SwarmClient>(SwarmClient, MODULE);