Standardise socket listener methods