jow- / ucode

JavaScript-like language with optional templating
ISC License
90 stars 30 forks source link

Add sockets support #192

Closed jasle closed 5 months ago

jasle commented 7 months ago

Would it be possible to add support for using sockets in ucode?

I am especially interested in ethernet sockets, I want to communicate with the management interface of a vdsl modem.

pktpls commented 6 months ago

We've been tinkering with sockets over FFI a little here: https://github.com/jow-/ucode/pull/121

Far from ideal, but maybe just enough for you

jow- commented 5 months ago

In the meanwhile OpenWrt also gained an ucode binding for libuclient, which provides support for doing HTTP requests: https://github.com/openwrt/uclient/commit/e611e6d0ff0ba31070abacdb53037d3e9a4115a6

jow- commented 5 months ago

See also https://github.com/jow-/ucode/pull/196

jow- commented 5 months ago

Fixed by #196