socket class and support send click info from client to server