# How to send data to losant platform over websocket

**URL:** <https://forums.losant.com/t/how-to-send-data-to-losant-platform-over-websocket/4721>\
**Category:** Help\
**Tags:** device\
**Created:** [September 6, 2022, 6:14am UTC](https://forums.losant.com/t/how-to-send-data-to-losant-platform-over-websocket/4721 "2022-09-06T06:14:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tusar\_Kanta\_Sahoo](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@Tusar\_Kanta\_Sahoo](https://forums.losant.com/u/Tusar_Kanta_Sahoo)\
**Post date:** [September 6, 2022, 6:14am UTC](https://forums.losant.com/t/how-to-send-data-to-losant-platform-over-websocket/4721/1 "2022-09-06T06:14:08Z")

</div>

I created a Gateway device in losant to which I want to send data by websocket-client (eg. [socket.io](http://socket.io)). I am able to send data through MQTT client as given in Documentation. But I need help in sending data by WebSocket.

---

<div class="post-metadata">

**Author:** ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)\
**Post date:** [September 6, 2022, 2:40pm UTC](https://forums.losant.com/t/how-to-send-data-to-losant-platform-over-websocket/4721/2 "2022-09-06T14:40:14Z")

</div>

Losant does not have first-class support for receiving data via websocket connection. As you’ve mentioned, we do support connections to our [MQTT broker](https://docs.losant.com/mqtt/overview/#the-losant-message-broker) over `ws` or `wss` protocols. Alternative options are to send the data to Losant via [webhook](https://docs.losant.com/applications/webhooks/) request or one of our other supported [integrations](https://docs.losant.com/applications/integrations/).

I will file this as a feature request and follow up on this thread if I have any updates.

---

<div class="post-metadata">

**Author:** ![Tusar\_Kanta\_Sahoo](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@Tusar\_Kanta\_Sahoo](https://forums.losant.com/u/Tusar_Kanta_Sahoo)\
**Post date:** [September 7, 2022, 5:04am UTC](https://forums.losant.com/t/how-to-send-data-to-losant-platform-over-websocket/4721/3 "2022-09-07T05:04:18Z")

</div>

Thanks, @Sebastian_Turner for the clarification.
