# Mender Websocket Connection

**URL:** <https://hub.mender.io/t/mender-websocket-connection/6331>\
**Category:** General Discussions\
**Tags:** api, mender-client, mender-connect\
**Created:** [November 10, 2023, 4:10pm UTC](https://hub.mender.io/t/mender-websocket-connection/6331 "2023-11-10T16:10:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyxlwuff](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@pyxlwuff](https://hub.mender.io/u/pyxlwuff)\
**Post date:** [November 10, 2023, 4:10pm UTC](https://hub.mender.io/t/mender-websocket-connection/6331/1 "2023-11-10T16:10:58Z")

</div>

Hi there, I’ve noticed there’s an endpoint in the management api that lets you establish a direct connection with a device (`/devices/{id}/connect`) but i’m not too sure how to interface with it. I’ve been able to get _some_ sort of response by copy-pasting what I see in a remote terminal session on the Mender dashboard but that seems to return a “not found” at the end of each response, and I can’t seem to find anything anywhere about how you interface with it.

Does anyone have any idea? Thanks!

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [November 11, 2023, 7:54pm UTC](https://hub.mender.io/t/mender-websocket-connection/6331/2 "2023-11-11T19:54:10Z")

</div>

Hi @pyxlwuff,

The `connect` endpoint is currently lacking detail documentation, I’m sorry. Maybe the implementation by @joelguittet is helpful to you? You can find it at [https://github.com/joelguittet/mender-mcu-client/blob/master/add-ons/src/mender-troubleshoot.c](https://github.com/joelguittet/mender-mcu-client/blob/master/add-ons/src/mender-troubleshoot.c)

Greetz,  
Josef
