added handshake data
ensured that the handshake data is also used when a reconnect is needed
Merge pull request #29 from dei79/handshake_data

added handshake data