substack/shoe — pull request #3 by Raynos (2012-08-07 01:15:51+00:00)
Title: Handle buffer better

Write to the buffer in .write if the buffer has data

Only emit connect after the buffer has emptied