fixed bug about unnecessary call '/msgbus/trap' when using websocket