My rails application uses an ActionCable stone configured as a single channel chat application.
The close event continues to be called and then resumes continuously. My Rails server sees the connection correctly; loop happens in browser / javascript.
Connection.prototype.events = { message: function(event) { var identifier, message, ref; ref = JSON.parse(event.data), identifier = ref.identifier, message = ref.message; return this.consumer.subscriptions.notify(identifier, "received", message); }, open: function() { this.disconnected = false; return this.consumer.subscriptions.reload(); }, close: function() { return this.disconnect(); }, error: function() { return this.disconnect(); } };
Has anyone experienced this problem?
source share