Closed andrewcopley closed 5 years ago
This doesn't have anything to do with the empty apply. Reproduce the problem by (after the websocket is created) just choose "New" from the catalog. When you exit the editor, the UI sends this unsubscribe on the websocket:
{"msg":"unsubscribe"}
A valid unsubscribe looks like this:
{"msg":"unsubscribe","namespace":"yipee"}
Of course we could make the backend more resilient to bad input on the websocket instead of crashing/restarting. For now, we're counting on the UI to be precise and correct about the format of messages across the websocket though
Fixed on front end. There is no update status on the controllers in the canvas still, but we are now sending the correct unsubscribe and subscribing correctly on new.
When applying an empty namespace, it closes the websocket when you go back to the catalog. (we believe it is the unsubscribe)