nabu.run 1.1
Posted: Mon Apr 03, 2023 5:34 pm
I updated https://nabu.run to v1.1.0. The major new feature is TCP support... more specifically, WebSockets. Browsers don't have the ability to listen on a raw TCP port like other adapters, but they can connect out over WebSockets. So with the use of a small proxy, it's now possible to use nabu.run with MAME or other emulators that do serial-over-TCP.
Here's the video:
The proxy I use is called websocat, and they appear to have binary releases for all the operating systems: https://github.com/vi/websocat
Documentation is a little lacking right now, I ran out of weekend. But I will share here the incantation I used
websocat -v --binary --exit-on-eof ws-l:127.0.0.1:5818 tcp-l:127.0.0.1:5817
That assumes you point MAME to TCP 5817, and nabu.run is temporarily hard coded to connect to ws://127.0.0.1:5818. websocat is very flexible, and it's the only thing I found that will proxy two listening connections together. But it does get slightly confused sometimes if you just disconnect the websocket side, which is easily remedied by restarting it.
This may be of even more limited use, since by the time you've installed MAME, you might as well install another IA, but at the very least it will make my life easier as I continue to develop nabu.run.
Enjoy!
Chris
Here's the video:
The proxy I use is called websocat, and they appear to have binary releases for all the operating systems: https://github.com/vi/websocat
Documentation is a little lacking right now, I ran out of weekend. But I will share here the incantation I used
websocat -v --binary --exit-on-eof ws-l:127.0.0.1:5818 tcp-l:127.0.0.1:5817
That assumes you point MAME to TCP 5817, and nabu.run is temporarily hard coded to connect to ws://127.0.0.1:5818. websocat is very flexible, and it's the only thing I found that will proxy two listening connections together. But it does get slightly confused sometimes if you just disconnect the websocket side, which is easily remedied by restarting it.
This may be of even more limited use, since by the time you've installed MAME, you might as well install another IA, but at the very least it will make my life easier as I continue to develop nabu.run.
Enjoy!
Chris