Add socket factory