Generic extension management for WebSocket connections