CESARBR / CESARBR/knot-cloud-protocol-adapter-websocket

"data" events are duplicated

Open
#11 2 comments 0 reactions 0 assignees View on GitHub
bug priority: low
Dominant language
JavaScript
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

When a device publishes data items, the `data` event is received twice for each publication, with repeated information.

e.g.
```{from: '6e5a681b2ae7be40', payload: {sensorId: 2, value: 24}}```
```{from: '6e5a681b2ae7be40', payload: {sensorId: 2, value: 24}}```
```{from: '6e5a681b2ae7be40', payload: {sensorId: 1, value: true}}```
```{from: '6e5a681b2ae7be40', payload: {sensorId: 1, value: true}}```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue identifies duplicated data events in the WebSocket protocol adapter but names no files, tests, or entry points. Start by reproducing a device publication and tracing where data events are emitted; done means each published item produces one event with no repeated information, with a regression test if the repository has an established test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.