createSendTransport

Creates a WebRTC send transport for media transmission.

This function initiates a WebRTC send transport with a server for sending media streams. It performs the following actions:

  1. Emits a createWebRtcTransport event to the server to request transport creation

  2. Sets up transport event handlers for connecting, producing, and monitoring state

  3. Provides basic transport management functionality

Features:

  • Creates both local and remote WebRTC transports

  • Handles DTLS connection establishment

  • Manages media production events

  • Monitors connection state changes

Parameters:

  • options Configuration options for transport creation

Returns: