YunoHost-Apps / excalidraw_ynh

Excalidraw package for YunoHost
https://excalidraw.com/
GNU General Public License v3.0
4 stars 3 forks source link

Live collaboration doesn't work #6

Open clicit opened 1 year ago

clicit commented 1 year ago

When starting the live collaboration via the respective icon everything seems to be fine, the other users can also open and edit the drawing. But it isn't live-synced at all, meaning that everybody draws on his own sheet somehow. You don't see the mouse pointer of the others.

Context

Excalidraw version: 0.11.0~ynh2

Steps to reproduce

  1. Start a new drawing
  2. Click on 'live collaboration'
  3. Share the link with another user
  4. Both draw on the sheet

Expected behavior

Realtime live-sync. Drawing on the same sheet.

nykula commented 1 year ago

More specifically, it attempts to sync using the oss-collab-us1.excalidraw.com server for socket.io, which the CORS policy forbids.

clicit commented 1 year ago

Any chance to get this fixed?

GaelFG commented 10 months ago

After a bit of investigation, in order to make the 'feature' work 'the benevolent one' have :

rodinux commented 5 months ago

After a bit of investigation, in order to make the 'feature' work 'the benevolent one' have :

* To deploy as a service a 'room server', another nodejs app available here : https://github.com/excalidraw/excalidraw-room

* Modify an the config file : https://github.com/excalidraw/excalidraw/blob/master/.env.production to replace oss-collab-us1.excalidraw.com with the room service domain.

* I don't know how yunohost handle port forwarding but there is probably a port mapping to do in order for the room service to be reachable

* And probably a firewall rule to update to allow the communication.

Hello, does someone have test this ??

furkanakyol commented 4 months ago

After a bit of investigation, in order to make the 'feature' work 'the benevolent one' have :

* To deploy as a service a 'room server', another nodejs app available here : https://github.com/excalidraw/excalidraw-room

* Modify an the config file : https://github.com/excalidraw/excalidraw/blob/master/.env.production to replace oss-collab-us1.excalidraw.com with the room service domain.

* I don't know how yunohost handle port forwarding but there is probably a port mapping to do in order for the room service to be reachable

* And probably a firewall rule to update to allow the communication.

Hello, does someone have test this ??

Have you tested it?