decode connect message