sm: start implementing get_event

The client can now send connect request. Start building the
infrastructure to handle it.