User connection and pending message retrieval