code: func (s *BaseStream) Write(data []byte) (int, error) {
  	if s.isDatagramStream() {
  		return 0, errors.New("cannot use Write with datagram stream")
  	}
  
  	return s.writeRaw(data)
  }
docs: // Write implements StreamClient.