online-offline/

directory
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL