server sock api