Andrei486 / uml-diagram-collab

0 stars 0 forks source link

Set up read-only joining via IP and port #7

Closed Andrei486 closed 9 months ago

Andrei486 commented 1 year ago

Allow users to join a host's room with read-only permissions (no changing permissions allowed) via the start page. Users should enter the IP and port in some format, probably in the same text box for later conversion to room code. Once the connection is formed, the guest user should at least see the current state of the diagram; ideally we can get the host to send further updates as well.

To do:

em66850 commented 9 months ago

PR #40 added a direct connection dialog and the capability to parse the input (format is "ip:port"). It does not attempt to make a connection to the specified host.

To do: Take the IP and port from the start screen controller and create a readonly connection to the host.

Andrei486 commented 9 months ago

Leaving this here: JavaFX's method https://docs.oracle.com/javase/8/javafx/api/javafx/application/Platform.html#runLater-java.lang.Runnable- should allow us to execute Commands obtained via TCP on the UI thread without issues, as we receive them.

Andrei486 commented 9 months ago

Now a duplicate of #56.