stub for customizable socket connection logic