- Wrap ws.send in try-catch to handle connection failures gracefully
- Set isConnected to false and schedule retry via emitVisit after 500ms on error
- Add early return guard in emitVisit to skip emission when not rendered or connected
Introduce a new `click_fields` list alongside existing document fields, implement `is_click_record` method to identify click events by checking for 'click' event type, and extend `get_record` to extract click-specific fields. In the `post` method, route click records to a new 'click' collection with associated visit_id, enabling separate storage and analysis of click interactions distinct from document and general event records.