 # Todo.
 # blow up if not stream
 # add in hook to finish stream slurp whenever you want
-# config for serialport
-# add timeout to promise chain
 # continue emit errors
 # versioning


  connect: ->
    connectToSerialPort = (port) ->
      serialPort = new SerialPort(port, { baudrate: 9600 }, false)

      serialPort.on 'data', (data) ->
        output.append(data.toString())

    defaults =
      deployTimeout: 15000
      idleReadTimeBeforeClose: 1000
      serialPortOptions:
        baudrate: 9600
      reset: true
      save: true

