retrieve the app_key from the handshake instead of the connection