package client type ConnectionState interface { Close() IsClosed() bool WriteData(data []byte) error StartReading() }