Added socket io client code.