also send heartbeats if websockets are used

fixes #14
cancel heartbeat timers on connectionLost in the websocket implementation
"Merge pull request #15 from frog32" by GRIC

Add heartbeat on WebSockets