Skip to main content

Overview

The getJoinUrl utility function creates a new URL with session name and password embedded as query and hash parameters. This is essential for creating shareable links that allow other users to join your collaborative sessions automatically.
Perfect for: Session sharing, invitation systems, deep linking, collaboration workflows, and any scenario where you need to distribute session access.

Import

Signature

Parameters

URL
required
The base URL to modify with session parameters
string
required
The session name to embed in the URL
string
required
The session password to embed in the URL
string
default:"rtName"
The query parameter key for the session name
string
default:"rtPwd"
The hash parameter key for the session password

Returns

URL
A new URL instance with the session name and password parameters embedded

Examples

Basic Usage

Create a simple join URL with default parameters:

Custom Parameter Keys

Use custom parameter keys for existing URL schemes:

Share Button Implementation

Build a complete share functionality:

Invitation System

Create a comprehensive invitation system:

QR Code Generation

Combine with QR code generation for mobile sharing:

Deep Linking for Mobile Apps

Create deep links for mobile applications:

URL Builder with Validation

Create URLs with comprehensive validation:

URL Structure

The generated URLs follow this structure:
  • Query Parameter: Session name is added as a query parameter (default key: rtName)
  • Hash Parameter: Password is added as a hash parameter (default key: rtPwd)
  • Hash vs Query: Passwords use hash parameters for better security (not sent to servers)

Security Considerations

Password Handling

URL Validation

Secure Sharing

Common Patterns

  • Session Invitations: Create shareable links for team collaboration
  • Deep Linking: Enable direct access to specific sessions
  • QR Code Sharing: Generate QR codes for mobile session access
  • Email Integration: Embed join URLs in invitation emails
  • Social Sharing: Share sessions via social media platforms

TypeScript Support

The function is fully typed for better development experience: