title: Send array of data to mqtt node js
body: <p>I am trying to send an array of data by node to my mqtt server.</p>
  
  <p>I have a receive function working but I cannot get it working in the other way.</p>
  
  <pre><code>  var message = new Array();
    message[0]  = 108;
    message[1]  = 11;
    client.publish("/topic", message, {
              retain: false,
              qos: 0
          });
  </code></pre>
  
  <p>But I get </p>
  
  <pre><code>[ERROR] TypeError: invalid data
  </code></pre>
  
  <p>I don't know how I have to declare the array to be able to fill all the data and send it. In my recevie function I get the message variable as an argument and I can read it like an array: message[x]...</p>