{"action":"created","issue":{"url":"https://api.github.com/repos/svaarala/duktape/issues/233","labels_url":"https://api.github.com/repos/svaarala/duktape/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/svaarala/duktape/issues/233/comments","events_url":"https://api.github.com/repos/svaarala/duktape/issues/233/events","html_url":"https://github.com/svaarala/duktape/issues/233","id":96873279,"number":233,"title":"Debug protocol: Under what circumstance is a flush triggered?","user":{"login":"fatcerberus","id":4097841,"avatar_url":"https://avatars.githubusercontent.com/u/4097841?v=3","gravatar_id":"","url":"https://api.github.com/users/fatcerberus","html_url":"https://github.com/fatcerberus","followers_url":"https://api.github.com/users/fatcerberus/followers","following_url":"https://api.github.com/users/fatcerberus/following{/other_user}","gists_url":"https://api.github.com/users/fatcerberus/gists{/gist_id}","starred_url":"https://api.github.com/users/fatcerberus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatcerberus/subscriptions","organizations_url":"https://api.github.com/users/fatcerberus/orgs","repos_url":"https://api.github.com/users/fatcerberus/repos","events_url":"https://api.github.com/users/fatcerberus/events{/privacy}","received_events_url":"https://api.github.com/users/fatcerberus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-23T18:18:35Z","updated_at":"2015-07-24T00:51:11Z","closed_at":null,"body":"Can I assume that if a flush is triggered, that I have at least one full message available?  The streaming setup is difficult to work with because Duktape is allowed to write partial messages, forcing constant trial parses (as mentioned in the documentation, you can't just blindly scan for an EOM byte), which is inefficient and tedious."},"comment":{"url":"https://api.github.com/repos/svaarala/duktape/issues/comments/124282450","html_url":"https://github.com/svaarala/duktape/issues/233#issuecomment-124282450","issue_url":"https://api.github.com/repos/svaarala/duktape/issues/233","id":124282450,"user":{"login":"fatcerberus","id":4097841,"avatar_url":"https://avatars.githubusercontent.com/u/4097841?v=3","gravatar_id":"","url":"https://api.github.com/users/fatcerberus","html_url":"https://github.com/fatcerberus","followers_url":"https://api.github.com/users/fatcerberus/followers","following_url":"https://api.github.com/users/fatcerberus/following{/other_user}","gists_url":"https://api.github.com/users/fatcerberus/gists{/gist_id}","starred_url":"https://api.github.com/users/fatcerberus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatcerberus/subscriptions","organizations_url":"https://api.github.com/users/fatcerberus/orgs","repos_url":"https://api.github.com/users/fatcerberus/repos","events_url":"https://api.github.com/users/fatcerberus/events{/privacy}","received_events_url":"https://api.github.com/users/fatcerberus/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T00:51:11Z","updated_at":"2015-07-24T00:51:11Z","body":"By the way, I am aware of the JSON proxy. It's just I wanted to implement something even simpler, a message format that can be parsed just by splitting a message at word boundaries (like a Unix shell)."}}