Pass session module instead of connect