
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
mudebug-socket
Advanced tools
A wrapper of any mudb sockets and socket servers for simulating network conditions.
To simulate network conditions on the client side.
// downstream latency of ~100 ms
new MuDebugSocket({
socket, // a MuSocket
inLatency: 100,
})
// downstream jitter up to 30 ms
new MuDebugSocket({
socket,
inJitter: 30,
})
// ~1% downstream packet loss
new MuDebugSocket({
socket,
inPacketLoss: 1,
})
// upstream latency of ~100 ms
new MuDebugSocket({
socket,
outLatency: 100,
})
// upstream jitter up to 30 ms
new MuDebugSocket({
socket,
outJitter: 30,
})
// ~1% upstream packet loss
new MuDebugSocket({
socket,
outPacketLoss: 1,
})
You can pass in any combinations of the above to simulate the condition that you need. Also, you can simulate the same set of network conditions on the server side.
Unlike in other mudb socket modules, MuDebugSocket and MuDebugServer are designed to be asymmetrical, meaning you don't have to use both at the same time.
npm i mudebug-socket
spec:object
socketServer:MuSocketServerinLatency?:numberinJitter?:numberinPacketLoss?:numberoutLatency?:numberoutJitter?:numberoutPacketLoss?:numberspec:object
socket:MuSocketinLatency?:numberinJitter?:numberinPacketLoss?:numberoutLatency?:numberoutJitter?:numberoutPacketLoss?:numberCopyright (c) 2018 He Diyi, Shenzhen Dianmao Technology Company Limited
FAQs
Simulate network conditions
We found that mudebug-socket demonstrated a not healthy version release cadence and project activity because the last version was released 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.