# Dashboard Socket ID bug?

**URL:** <https://discourse.nodered.org/t/dashboard-socket-id-bug/6229>\
**Category:** Dashboard\
**Created:** [30 December 2018 05:25 UTC](https://discourse.nodered.org/t/dashboard-socket-id-bug/6229 "2018-12-30T05:25:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 December 2018 22:13 UTC](https://discourse.nodered.org/t/dashboard-socket-id-bug/6229/6 "2018-12-30T22:13:39Z")

</div>

A bit more digging - changing the beforeEmit function as follows seems to help, as the correct socketid is there, so can be re-attached..

```
            if (original) {
                var om = original.msg;
                om.socketid = original.socketid;
                return om;
            }
```

---

_[View the full topic](https://discourse.nodered.org/t/dashboard-socket-id-bug/6229)._
