Fix ws monitor issue with multiple events

Fixes issue when connecting and reconnecting an event websocket it was causing multiple events to be published for a single event.