added engine.io switch case