---
title: Multiplayer Collaboration & WebRTC
category: Sharing
icon: "\U0001F465"
sort_order: 21
slug: multiplayer-collaboration
canonical_url: 'https://basaltnotes.com/guides/multiplayer-collaboration'
markdown_url: 'https://basaltnotes.com/guides/multiplayer-collaboration.md'
---
# Multiplayer Collaboration & WebRTC

Collaborate on notes in real time using secure, client-coordinated WebSocket relay rooms and peer-to-peer WebRTC.

## Sharing for Collaboration

1. Open the note you want to edit collaboratively.
2. Click **Collaborate** in the header.
3. Invite other users by sending them a collaboration access token.

## Collaboration Architecture

- **Real-Time Sync:** Collaboration uses Yjs conflict-free replicated data types (CRDTs) to sync modifications instantly.
- **WebRTC (Peer-to-Peer):** Streams updates directly between browsers without going through our servers.
- **WebSocket Relay:** If WebRTC is blocked by firewalls, updates are securely routed through encrypted WebSocket relay rooms.
