You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 28, 2021. It is now read-only.
Some websocket messages should be sent by the server. The messages which this makes sense for are things like notification of a change on a stream or a project, or the addition of children to an object. This will make plugin implementations simpler and behaviour more consistent across plugins.
Existing broadcast and direct message forwarding could be retained, for cases where custom messages are needed.
Actual Behaviour
At the moment the server just forwards messages from clients to each other. Many of these messages are to notify other clients of updates to a stream. These messages could easily be generated on the server.
Affected Projects
Immediately, this affects SpeckleServer. Eventually, all projects with websocket communication could be upgraded.
Proposed Solution (if any)
Backward compatibility could be maintained, allowing existing clients to send custom messages. Then, all receivers could be upgraded to use the new server-generated messages. Then, senders could be upgraded to not send websocket messages.
I don't know if this has been discussed before, but I think it would be worth considering if it's not too difficult. If people generally approve, I can make a more detailed plan.