Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Close websocket before destruction
As title
  • Loading branch information
MarcoSulla committed Feb 10, 2016
commit 6f64864e8bd2fcdebe8017bb18b66071f7a7d4e4
18 changes: 17 additions & 1 deletion WebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,5 +556,21 @@ Ext.define('Ext.ux.data.proxy.WebSocket', {

opt.setSuccessful(true);
}
}
},
destroy: function () {
/**
* @author Marco Sulla (marcosullaroma@gmail.com)
* @date Feb 10, 2016
*/

var self = this;

var ws = self.getWebsocket();

ws.onclose = function (e) {
self.callParent(arguments);
};

ws.close();
},
});