Top 1.0% dependent repos on proxy.golang.org
proxy.golang.org : github.com/TykTechnologies/goautosocket
The GAS library provides auto-reconnecting TCP sockets in a tiny, fully tested, thread-safe API. The `TCPClient` struct embeds a `net.TCPConn` and overrides its `Read()` and `Write()` methods, making it entirely compatible with the `net.Conn` interface and the rest of the `net` package. This means you should be able to use this library by just replacing `net.Dial` with `gas.Dial` in your code. To test the library, you can run a local TCP server with: and run this code: Then try to kill and reboot your server, the client will automatically reconnect and start sending messages again; unless it has reached its retry limit.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21tyk%21technologies/goautosocket
License: MIT
Latest release: about 6 years ago
First release: about 6 years ago
Namespace: github.com/TykTechnologies
Dependent packages: 7
Dependent repositories: 33
Stars: 0 on GitHub
Forks: 1 on GitHub
Docker dependents: 1
Docker downloads: 40
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago