
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
munet-socket
Advanced tools
TCP/UDP communications made available for mudb, useful when building apps with frameworks like Electron.
server
var tcp = require('net')
var udp = require('dgram')
var MuNetSocketServer = require('munet-socket/server').MuNetSocketServer
var MuServer = require('mudb/server').MuServer
var tcpServer = tcp.createServer()
var udpServer = udp.createSocket({
type: 'udp4',
reuseAddr: true,
})
var socketServer = new MuNetSocketServer({
tcpServer,
udpServer,
})
var muServer = new MuServer(socketServer)
tcpServer.listen(9977)
udpServer.bind(9988, '127.0.0.1')
muServer.start()
client
var tcp = require('net')
var udp = require('dgram')
var MuNetSocket = require('munet-socket/socket').MuNetSocket
var MuClient = require('mudb/client').MuClient
var socket = new MuNetSocket({
sessionId: Math.random().toString(36).substr(2),
// for TCP socket
connectOpts: {
port: 9977,
host: '127.0.0.1',
},
// for UDP socket
bindOpts: {
port: 9989,
address: '127.0.0.1',
},
})
var muClient = new MuClient(socket)
muClient.start()
npm i munet-socket
spec <Object>
tcpServer <net.Server> the underlying TCP serverudpServer <dgram.Socket> the underlying UDP serverspec <Object>
sessionId <string> a unique session id used to identify the clientconnectOpts <Object> used by connect() to initiate a connection when the client startsbindOpts <Object> used by bind() to make the socket listen for datagram messages when the client startstcpSocket <net.Socket> optionaludpSocket <dgram.Socket> optionalCopyright (c) 2018 He Diyi, Shenzhen Dianmao Technology Company Limited
FAQs
TCP/UDP communication for mudb
We found that munet-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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.