Remove global origin option and update README

- Remove origin option from RondevuClientOptions and RondevuOptions
- Remove ConnectOptions interface with global flag
- Remove all customHeaders logic for origin override
- Update README with consistent Rondevu branding

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-08 10:52:56 +01:00
parent 7831e03af1
commit 2c3f8ef22b
5 changed files with 21 additions and 47 deletions

View File

@@ -161,8 +161,6 @@ export interface ErrorResponse {
export interface RondevuClientOptions {
/** Base URL of the Rondevu server (e.g., 'https://example.com') */
baseUrl: string;
/** Origin header value for session isolation (defaults to baseUrl origin) */
origin?: string;
/** Optional fetch implementation (for Node.js environments) */
fetch?: typeof fetch;
}
@@ -179,8 +177,6 @@ export interface RondevuOptions {
baseUrl?: string;
/** Peer identifier (optional, auto-generated if not provided) */
peerId?: string;
/** Origin header value for session isolation (defaults to baseUrl origin) */
origin?: string;
/** Optional fetch implementation (for Node.js environments) */
fetch?: typeof fetch;
/** WebRTC configuration (ICE servers, etc.) */
@@ -191,14 +187,6 @@ export interface RondevuOptions {
connectionTimeout?: number;
}
/**
* Options for connecting to a session
*/
export interface ConnectOptions {
/** Use global origin (https://ronde.vu) instead of request origin for session isolation */
global?: boolean;
}
/**
* Options for joining a topic
*/