directory
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Apr 22, 2024
License: MIT
Opens a new window with license information.
README
¶
online-offline
This example shows how to use official built-in pool to offline/online.
detail
Tcpx provides an official clientPool to manager client contexts. Here I show how to use it online and offline
step
cd server
go run server.go
cd client
go run client.go
result
server-side output 'online success' and after 5 seconds output 'offline success'.
Directories
¶
Click to show internal directories.
Click to hide internal directories.