created socket class on server

has init method