Use io.ReadWriteCloser as type for connections.