LA1TV / Hyperdeck-JS-Lib

A javascript library for communication with the Blackmagic Hyperdeck.
MIT License
26 stars 8 forks source link

use status code to determine if multiple lines expected #47

Closed tjenkinson closed 6 years ago

tjenkinson commented 6 years ago

We now use the status code to determine if there are muliple lines, instead of checking for the :. We treat 1xx and 200 as single line responses and expect everything else to be multiline.

We also refactored the parser which improves overall performance, and correctly handle if the data arrives in random segments. There is a test that checks we can handle a response arriving character by character.

fixes #44

based off #46 closes #46 closes #45