Refactor SynchronizedEditorChannel connect / confirmation #1897
Labels
enhancement
javascript
Pull requests that update Javascript code
ruby
Pull requests that update Ruby code
In production, it takes some time for users to be actually connected with a channel through ActionCable. This causes problems, since the synchronized editor relies on an immediate connection to work. Otherwise, the text written by another learner might not get synchronized, and also the online status is not shown correctly.
As a first countermeasure, the ActionCable method
ensure_confirmation_sent
has been overwritten in 2c46ad2 (channels/application_cable/channel.rb
), which is not ideal.For the specific case of the synchronized editor, we might be able to refactor the code by using the
connected()
method inassets/javascripts/channels/synchronized_editor_channel.js
.The text was updated successfully, but these errors were encountered: