Compare commits
4 Commits
v0.0.2-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 3669528c56 | |
Derrick Hammer | 61cee154e5 | |
Derrick Hammer | 0ec1dd1aac | |
Derrick Hammer | 8c6b038f89 |
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-swarm-client",
|
||||
"version": "0.0.2-develop.14",
|
||||
"version": "0.1.0-develop.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/kernel-swarm-client",
|
||||
"version": "0.0.2-develop.14",
|
||||
"version": "0.1.0-develop.1",
|
||||
"dependencies": {
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.9",
|
||||
"async-mutex": "^0.4.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-swarm-client",
|
||||
"version": "0.0.2-develop.14",
|
||||
"version": "0.1.0-develop.1",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -253,6 +253,10 @@ export class Socket extends Client {
|
|||
);
|
||||
}
|
||||
|
||||
async getListeners() {
|
||||
return this.callModuleReturn("socketListeners", { id: this.id });
|
||||
}
|
||||
|
||||
private ensureEvent(event: string): void {
|
||||
if (!(event in this.eventUpdates)) {
|
||||
this.eventUpdates[event] = new Map<Function, DataFn>();
|
||||
|
@ -266,7 +270,7 @@ export class Socket extends Client {
|
|||
}
|
||||
|
||||
export const MODULE =
|
||||
"zduN1xKFUkDrPtUdvL9Sih7A6mAcnkhR6JuLtStf3zgCcpEsPyqkmbcoHH";
|
||||
"zduNSYinQrrjB2s7Y57ABL7BCic5gD64p9rhrdvfoN4i5rQE2C9U3Q7jSF";
|
||||
|
||||
export const createClient = factory<SwarmClient>(SwarmClient, MODULE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue