Socket IO example for class