Websocket client in lua

How can be this controlled in that simulator? Can HIDmacros be used with this application?
Post Reply
allan
Posts: 3
Joined: 24 Jun 2020, 21:12

Websocket client in lua

Post by allan » 24 Jun 2020, 21:38

How can I create a websocket client in LuaMacros? Maybe using a client from here? https://github.com/lipp/lua-websockets - but it's ancient, so can it work?

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Websocket client in lua

Post by admin » 25 Jun 2020, 07:56

AFAIK you can't add 3rd party libraries to lua interpreter built in luamacros. It would have to be added into the exe (and I'm not sure how easy is that for embedded mode of lua).
What's your use case for websocket client?
Petr Medek
LUAmacros author

allan
Posts: 3
Joined: 24 Jun 2020, 21:12

Re: Websocket client in lua

Post by allan » 25 Jun 2020, 16:26

The use case is that I need to interface with the presentation software ProPresenter and live streaming software OBS Studio (well-known within their categories) that are running websocket servers, so that one can interface with them from other software and from any computer in the network. I have a remote that can only send Left and Right arrow keys, so I need to "reprogram" that to work send messages over websockets.

I think websocket will become a more and more common way of interfacing between applications, so I think it could be useful to have in LuaMacros...

Post Reply