socket_connector
Package for joining sockets together to create socket relays.
2.4.1
3.2K downloads/mo
#4509 most downloaded on pub.dev
cconstab/socket_connector
What this package is like to depend on
Last release 10 months ago
15 Oct 2025
Release timing varies
gaps range from 8 days to 11 months
Nearly every release is documented
notes for 19 of 19 stable releases
3 versions withdrawn
withdrawn after publishing
3 years old
22 releases · first in 2023
2 releases in the last 12 months
see the full history below
Release timeline
22 releases · Mar 2023 to Oct 2025
2024
2025
2026
Releases
latest 22-
2.4.115 Oct 2025Release notes
Open source →- feat: add
statsmethod to SocketConnector; returns stats like number of sockets created in a session, bytes transferred in both directions, ip addresses used, etc
- feat: add
-
2.4.008 Oct 2025 withdrawnNothing published for this version
-
2.3.316 Nov 2024Release notes
Open source →- fix: ensure serverToSocket handles sockets in strict sequence as they are accepted
- fix: ensure that, when one side is closed, all data received from that side has been delivered to the other side before closing the other side
-
2.3.213 Nov 2024Release notes
Open source →- fix: stability under load
- ensure that socket.done is handled in all cases
- check a side's state before attempting to write to that side's socket
- fix: stability under load
-
2.3.112 Nov 2024 withdrawnRelease notes
Open source →- fix: correctly handle situation where a socket has been closed but the other side is still writing to it
-
2.3.012 Nov 2024 withdrawnRelease notes
Open source →- feat: Add
authTimeoutproperty 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 construction - feat: added
authTimeoutparameter toserverToServer; this is provided to the SocketConnector constructor - feat: added
backlogparameter toserverToServer; this is provided to the ServerSocket.bind call - feat: added
backlogparameter toserverToSocket; this is provided to the ServerSocket.bind call - fix: reordered some code in
_destroySideso it handles internal state before trying to destroy sockets - fix: added
catchErrorblocks for everywhere we're callinghandleSingleConnectionwhen wrapped inunawaited - More logging (when in verbose mode)
- feat: Add
-
2.2.021 Mar 2024Release notes
Open source →- feat: Enhance serverToSocket adding optional parameter
beforeJoiningwhich will be called before a socket pair is actually joined together. Thus, different transformers can be used for each socket pair.
- feat: Enhance serverToSocket adding optional parameter
-
2.1.015 Feb 2024Release notes
Open source →- Added
multiparameter toSocketConnector.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 addedonConnectparameter, so that callers can be informed when every new connection is made, and can thus take whatever action they require. - feat: Added grace period so that SocketConnector doesn't close until both (a) initial timeout has expired and (b) number of established connections is zero or has dropped to zero
- Added
-
2.0.122 Jan 2024 -
2.0.022 Jan 2024Release notes
Open source →- Added support for requiring client sockets to be authenticated in some app-defined way before they will be connected to the other side
- Added support for app-defined data transformers which can be used to transform the data while sending from A to B, and vice versa. Useful for adding traffic encryption, for example.
- Refactored for readability
- Multiple breaking changes to improve API readability
- More documentation
- More tests
-
1.0.1115 Sep 2023 -
1.0.1025 Jul 2023 -
1.0.925 Jul 2023 -
1.0.819 Mar 2023 -
1.0.719 Mar 2023 -
1.0.619 Mar 2023 -
1.0.519 Mar 2023 -
1.0.412 Mar 2023 -
1.0.312 Mar 2023 -
1.0.212 Mar 2023 -
1.0.112 Mar 2023Release notes
Open source →- Improved RegEx to show as much ascii as possible when using verbose option
-
1.0.011 Mar 2023