
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
A WebSocket to UDP proxy.
ws2udp will forward messages coming from the WebSocket server to UDP sockets, it is especially useful to send OSC messages from JavaScript applications to SuperCollider or any other software that doesn't support WebSockets. It registers all websockets connected and will broadcast messages sent to its own UDP port.
You will need Python>=3.7 and the websockets package.
The simplest way to install is using pip:
$ pip install ws2udp
$ ws2udp
WebSocket to UDP proxy
optional arguments:
-h, --help show this help message and exit
--udp-addr UDP_ADDR Address of the UDP receiver for broadcasting messages (default=localhost)
--udp-port UDP_PORT Port of the UDP receiver (default=57142)
--fwd-fixed Forward UDP to fixed target address/port
--fwd-addr FWD_ADDR Address of the UDP target for messages (default=localhost)
--fwd-port FWD_PORT Port of the UDP target (default=57143)
--addr ADDR WebSocket address to listen (default=0.0.0.0)
--port PORT WebSocket port to listen (default=8765)
--broadcast Enable UDP broadcasting
--quiet No verbose output
If the fwd-fixed
option is not given (default behavior),
the server expects binary messages following the format:
address_length(uint32)address(string)port(uint32)data
For example, to send the message hello world
to localhost:57120
, one would send:
b'\x09\x00\x00\x00localhost\x20\xdf\x00\x00hello, world'
The first 4 bytes b'\x09\x00\x00\x00
represents 9, then comes b'localhost'
and lastly b'\x20\xdf\x00\x00'
for 57120. Whatever comes after this is forwarded.
If the fwd-fixed
option is given, the original message data will be forwarded unaltered.
FAQs
A WebSocket to UDP proxy
We found that ws2udp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.