title: node.js serialport module event types
body: <p>Is it possible to declare an event type when transmitting data in the way that socket.io allows. Currently writing with serialport is as:</p>
  
  <pre><code>serialPort.write("OMG IT WORKS\r");
  </code></pre>
  
  <p>which is received as:</p>
  
  <pre><code>serialPort.on("data", function (data) {
      foo(data);
  });
  </code></pre>
  
  <p>i would like to transmit a number of different events e.g. "positionUpdate", "data", "timeSync" ..etc </p>
  
  <p>e.g 
      serialPort.emit("positionUpdate", slavePosition);</p>
  
  <p>Thanks</p>