mirror of
https://github.com/xtr-dev/rondevu-client.git
synced 2025-12-10 02:43:25 +00:00
Initial commit: Rondevu TypeScript client
TypeScript client library for Rondevu peer signaling and discovery server. Features: - Fully typed API with TypeScript definitions - Support for all Rondevu server endpoints - Configurable base URL for any server instance - Browser and Node.js compatible - Comprehensive documentation and examples - Type-safe request/response handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
31
src/index.ts
Normal file
31
src/index.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @rondevu/client - TypeScript client for Rondevu peer signaling server
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { RondevuClient } from '@rondevu/client';
|
||||
*
|
||||
* const client = new RondevuClient({
|
||||
* baseUrl: 'https://rondevu.example.com'
|
||||
* });
|
||||
*
|
||||
* // Create an offer
|
||||
* const { code } = await client.createOffer('my-room', {
|
||||
* info: 'peer-123',
|
||||
* offer: signalingData
|
||||
* });
|
||||
*
|
||||
* // Discover peers
|
||||
* const { sessions } = await client.listSessions('my-room');
|
||||
*
|
||||
* // Send answer
|
||||
* await client.sendAnswer({
|
||||
* code: sessions[0].code,
|
||||
* answer: answerData,
|
||||
* side: 'answerer'
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
|
||||
export { RondevuClient } from './client';
|
||||
export * from './types';
|
||||
Reference in New Issue
Block a user