add WebSocket for tracking dom and events