Added conditional for handling idle websocket conns