Keep connection state. Fixes #856
Keep connection state. Fixes #856

Actually check if we're connected when trying to Send() a message.
Messages now will get dropped when not connected.

TODO: Ideally this should be in a ring buffer to retransmit when the
connection comes back up.

42wim/matterbridge,42wim/matterbridge