# Help for sending a websocket command

**URL:** <https://discourse.nodered.org/t/help-for-sending-a-websocket-command/26373>\
**Category:** General\
**Created:** [9 May 2020 11:31 UTC](https://discourse.nodered.org/t/help-for-sending-a-websocket-command/26373 "2020-05-09T11:31:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blupendo](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@Blupendo](https://discourse.nodered.org/u/Blupendo)\
**Post date:** [9 May 2020 11:31 UTC](https://discourse.nodered.org/t/help-for-sending-a-websocket-command/26373/1 "2020-05-09T11:31:02Z")

</div>

Morning, everyone,  
To control my TV set-top box, it is possible to send it Websocket messages. I have intercepted messages in the Firefox console that are in the format :  
**{"Params":{"Token": "LAN", "Action": "ButtonEvent", "Press":[303]}}**

My Websocket node is connected and I tried to send the message in several forms, strings, object...

Why doesn't it work?

A preview of the HTML remote control:  
[remote control](http://fazcode.com/Assistant-Control-Windows/Plugins/ControlDecodeurSFR/remote.html?ip=192.168.1.2&btn=303)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 July 2020 11:31 UTC](https://discourse.nodered.org/t/help-for-sending-a-websocket-command/26373/2 "2020-07-08T11:31:04Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
