sock api: add first msg id retrieval function

No match.