54 lines
1.1 KiB
Markdown
54 lines
1.1 KiB
Markdown
# 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:
|
|
|
|
```json
|
|
{
|
|
"type": "message_type",
|
|
"id": "unique_id",
|
|
"data": {}
|
|
}
|
|
```
|
|
|
|
## Supported Message Types
|
|
|
|
- `ping` - Connectivity check
|
|
- `get_status` - Request status
|
|
- `search` - Nexus search
|
|
- `loot_event` - Loot notification
|
|
- `global` - 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`) |