How to replace codeigniter ajax call to ratchet socket
$.ajax({
url: base_url + "secure/secure_remove_file",
type: 'POST',
cache: true,
dataType: 'json',
data: { 'name': fileName },
timeout: 120000,
error: function() {
alert('error while loading data');
},
success: function(pdata) {
document.getElementById(id).style.display="none";
}
});