1.1 KiB
1.1 KiB
Browser Extension Integration Tests
Tests EU-Utility integration with browser extensions.
Communication Protocols
1. Native Messaging
- stdin/stdout communication
- 32-bit length prefix
- JSON message format
2. WebSocket Bridge
- Real-time bidirectional communication
- Port 8765 (configurable)
- Multiple client support
3. HTTP API
- REST endpoints
- Port 8080 (configurable)
- CORS enabled for browser access
Message Format
All messages use JSON format:
{
"type": "message_type",
"id": "unique_id",
"data": {}
}
Supported Message Types
ping- Connectivity checkget_status- Request statussearch- Nexus searchloot_event- Loot notificationglobal- Global/HOF announcement
Compatibility
| Browser | Native Messaging | WebSocket | HTTP |
|---|---|---|---|
| Chrome | ✅ | ✅ | ✅ |
| Firefox | ✅ | ✅ | ✅ |
| Edge | ✅ | ✅ | ✅ |
Manifest Generation
The plugin can generate native messaging manifests for:
- Chrome/Edge (with
allowed_origins) - Firefox (with
allowed_extensions)