NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #4101 most downloaded on pub.dev
Package for joining sockets together to create socket relays.
Last release 2 days ago
05 Oct 2026
Release timing varies
gaps range from 8 days to 11 months
Nearly every release is documented
notes for 21 of 21 stable releases
4 versions withdrawn
withdrawn after publishing
4 years old
25 releases · first in 2023
One column per quarter.
fix: close() now closes established connections too, as documented; they used to stay open.
close() now closes established connections too, as documented;
they used to stay open.feat: ChunkTransformer, a synchronous per-chunk alternative to DataTransformer for transforms that need no buffering.
ChunkTransformer, a synchronous per-chunk alternative to
DataTransformer for transforms that need no buffering.beforeJoining/onConnect, no
longer leaks the connected socket.fix: SocketConnector.gracePeriodPassed is now a read-only getter (it used to be a mutable field, so this is technically a breaking change, but mutable…
Socket.add
never blocks, so a writer that outran the far side used to inflate the
relaying process's memory without limit (gigabytes observed under iperf3).
Once more than SocketConnector.bufferHighWaterMark bytes (default 4 MiB,
per relay direction) have been added to the far socket, the connector
pauses reading until Socket.flush() confirms the OS accepted them, so
TCP throttles the sender to the speed of the slowest link. On the
transformer path, pauses now propagate through the intermediate
StreamController to the source socket (provided the transformer forwards
pauses, as stream.map and friends do)SocketKeepAlive parameter on all SocketConnector factory methodsSocketConnector.gracePeriodPassed is now a read-only getter (it used
to be a mutable field, so this is technically a breaking change, but mutable
never made any sense and nobody uses it that way)feat: add stats method to SocketConnector; returns stats like number of sockets created in a session, bytes transferred in both directions, ip address
stats method to SocketConnector; returns stats like number of
sockets created in a session, bytes transferred in both directions, ip
addresses used, etcNothing published for this version
fix: ensure serverToSocket handles sockets in strict sequence as they are accepted
ensure that socket.done is handled in all cases
fix: correctly handle situation where a socket has been closed but the other side is still writing to it
feat: Add authTimeout property to SocketConnector. Previously this was hard-coded to 5 seconds which is a bit restrictive for slow network connections
authTimeout property to SocketConnector. Previously this was
hard-coded to 5 seconds which is a bit restrictive for slow network
connections. It now defaults to 30 seconds but may be set at time of
constructionauthTimeout parameter to serverToServer; this is provided
to the SocketConnector constructorbacklog parameter to serverToServer; this is provided to
the ServerSocket.bind callbacklog parameter to serverToSocket; this is provided to
the ServerSocket.bind call_destroySide so it handles internal state
before trying to destroy socketscatchError blocks for everywhere we're calling
handleSingleConnection when wrapped in unawaitedfeat: Enhance serverToSocket adding optional parameter beforeJoining which will be called before a socket pair is actually joined together. Thus, diff
beforeJoining which
will be called before a socket pair is actually joined together. Thus,
different transformers can be used for each socket pair.Added multi parameter to SocketConnector.serverToSocket - whether to create new connections on the "B" side every time there is a new "A" side connect
multi parameter to SocketConnector.serverToSocket - whether to
create new connections on the "B" side every time there is a new "A" side
connection to the bound server port. Also added onConnect parameter,
so that callers can be informed when every new connection is made, and
can thus take whatever action they require.Removed an unnecessary dependency
Multiple breaking changes to improve API readability
Added close function to SocketConnector
Small format error to get to 140/140 on pub.dev
Improved network throughput of socket_connector
Added connection timeout if only one side connects
- fix change log
- Bug fix with closing sockets.
- Ready for isolates
Formatted with dart format 140/140 (I hope)
Included dart docs and formatted with dart format
Updated library name to match src
Improved RegEx to show as much ascii as possible when using verbose option
- Initial version.
Your coding agent can read these notes before it upgrades. Set up the MCP server →