request: add debugging call and fix hasCallback function
connection: fix _startHeartbeat function
connection: add debugging message for connect event