Event handlers: channel messages, DMs, ACKs, adverts, path updates, new contacts, disconnection — all write to Database + emit SocketIO. Command methods: send_channel_message, send_dm, get/delete contacts, get/set/remove channels, send_advert, check_connection, battery, manual_add_contacts, pending contacts approval. Auto message fetching and initial contact sync on connect. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Background thread runs meshcore async event loop. Supports both serial and TCP transports. Flask routes bridge sync→async via execute() method. Event subscriptions marked as TODO for Phase 1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>