Node-style bidirectional stream for chrome's serial interface