make sure connect isn't called multiple times, send uses partial data
Merge pull request #29 from leafo/master

Fix connect issues