Some work to support socketIo conversion.