Package Exports
- quickrtc-types
- quickrtc-types/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (quickrtc-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
📦 quickrtc_types
Shared TypeScript type definitions for QuickRTC client and server applications.
Overview
This package provides comprehensive type-safe interfaces for MediaSoup WebRTC communications, socket events, and application state management. It's designed to be shared between client and server implementations to ensure type consistency across your MediaSoup application.
Installation
npm install quickrtc_typesUsage
import {
MediasoupConfig,
JoinConferenceParams,
CreateTransportParams,
SocketEventData,
} from "quickrtc_types";Category-Specific Imports
// Core types
import { ConferenceMap, ParticipantsMap } from "quickrtc-types/core";
// Transport types
import { ProduceParams, ConsumeParams } from "quickrtc-types/transport";
// Socket types
import { SocketEventType, MeetingParams } from "quickrtc-types/socket";
// Client types
import { ClientConfig, ClientConnectionState } from "quickrtc-types/client";Type Categories
Core Types (/core)
MediasoupConfig- Server configurationConference- Conference entity interfaceParticipant- Participant entity interfaceConferenceMap,ParticipantsMap- Type aliases
Transport Types (/transport)
CreateTransportParams- WebRTC transport creationConnectTransportParams- Transport connectionProduceParams- Media productionConsumeParams- Media consumptionConsumerResponse- Consumer creation response
Conference Types (/conference)
JoinConferenceParams- Conference joiningAppState- Application state management
Socket Types (/socket)
SocketEventType- Supported event typesSocketEventData- Event data structureMeetingParams- Base meeting parametersSocketResponse- Standard response format
Client Types (/client)
ClientConfig- Client configurationClientConnectionState- Connection statesMediaConstraints- Media constraintsClientParticipant- Client-side participant info
Utility Types (/utils)
DeepPartial<T>- Deep partial utilityAsyncResult<T>- Async operation resultCallback<T>- Callback function type
Peer Dependencies
This package requires the following peer dependencies:
mediasoup ^3.19.0socket.io ^4.8.0
Development
# Build the package
pnpm build
# Watch mode for development
pnpm dev
# Clean build artifacts
pnpm cleanLicense
ISC