zeiss-digital-innovation / SynchronizeFX

JavaFX data-binding between JVMs over the network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Different model instances for different users

Tobisaninfo opened this issue · comments

Is it possible to have different model instances depending on different users?

One SynchronizeFxServer instance can manage only one model instance but you can have multiple SynchronizeFxServers. With the Netty/TCP based transimtter you have to open multiple ports to achieve that.

The JSR 356 WebSocket Based Transmitter has built-in support for multiple channels. To use it you need to implement a WebSocket Endpoint and pass received messages to SychronizeFXWebsocketServer. When passing new messages you need to decide which channel a message belongs to. In your case you would have a channel for each user.