Socket gateway