# Setup

```lua
-- Shared/Config_collaboration.lua

Config.CollaborationEditing = false -- Toggle live collaboration editing
Config.useWebsockets = false -- if CollaborationEditing is true and this is false then Events will be used for updating otherwise useWebsockets -- For websockets setup please follow the documentation
Config.webSocketURL = "http://localhost:3001" -- use Ngork or cloudflare tunnel URL
```

There are two ways to enable live collaboration :

1. **WebSocket-Based Setup (Recommended for Better Performance)**
2. **Event-Based Setup (Simpler but Less Scalable)**
