onlook
onlook copied to clipboard
feat: realtime manager
Description
Related Issues
Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Release
- [ ] Refactor
- [ ] Other (please describe):
Testing
Screenshots (if applicable)
Additional Notes
This PR depends on #1980
[!IMPORTANT] Introduce
RealtimeManagerfor handling real-time user and frame events in the editor using Supabase.
- RealtimeManager:
- New
RealtimeManagerclass inrealtime/manager.tsto manage real-time events using Supabase.- Handles user and frame events:
USER_UPDATED,FRAME_CREATED,FRAME_UPDATED,FRAME_DELETED.- Manages subscriptions and broadcasts events to a Supabase channel.
- Integration:
EditorEngineinengine.tsnow includesRealtimeManager.CanvasManagerandFramesManagersend real-time events on user and frame updates.- Models:
- New
RealtimeEventTypeand event interfaces inrealtime/index.ts.RealtimeUserinterface extendsUserMetadatawith position data.- Misc:
- Add
realtimeManagercontext inrealtime/index.tsfor React components.This description was created by
for 6f29cf6c7eabb8a742c2764bd7a46bf8b7e9ea26. You can customize this summary. It will automatically update as commits are pushed.
@satya-nutella is attempting to deploy a commit to the Onlook Team on Vercel.
A member of the Team first needs to authorize it.