add swith on/off api on browser simulation, so that the client and server can be coupled up