Parse connect message.