receiving means we’re connected
properly encode sent messages
Merge pull request #6 from friedcell/master

Fixed sending messages after connection established